TokenVerificationService
Verifies access tokens and refresh tokens, that may have been generated by a TokenGenerationService, or by any other OAuth 2.0 authorization server.
Inheritors
Functions
Link copied to clipboard
Validate a DPoP proof and extract the client's key if the proof exists at all.
Link copied to clipboard
Reads information about the token contained in tokenOrAuthHeader for token introspection.
Link copied to clipboard
abstract suspend fun validateAccessToken(tokenOrAuthHeader: String, httpRequest: RequestInfo?, dpopNonceService: NonceService? = null): KmmResult<Unit>
Validates the token (either plain token or from an HTTP Authorization header, i.e., with prefix).
Link copied to clipboard
abstract suspend fun validateRefreshToken(refreshToken: String, httpRequest: RequestInfo?, validatedClientKey: JsonWebKey?): String
Validates that this refresh token was actually issued by the known TokenGenerationService.