Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
interface AccessTokens

Provides a consistent way to generate access tokens.

Link copied to clipboard
class AuthenticationComplete(authorizationCodes: AuthorizationCodes, requestTracking: AuthRequestTracking, idTokens: IdTokens, documentationUri: String? = null) : Function1<request: Request, Response>
Link copied to clipboard
class AuthoriseRequestErrorRender(authoriseRequestValidator: AuthoriseRequestValidator, requestJWTValidator: RequestJWTValidator, fallBack: JsonResponseErrorRenderer, documentationUri: String? = null)
Link copied to clipboard
Link copied to clipboard
data class AuthorizationCode(val value: String)
Link copied to clipboard
data class AuthorizationCodeDetails(val clientId: ClientId, val redirectUri: Uri, val expiresAt: Instant, val state: State?, val isOIDC: Boolean, val responseType: ResponseType = Code, val nonce: Nonce? = null)
Link copied to clipboard
Link copied to clipboard

Provides a consistent way to manage authorization codes

Link copied to clipboard
Link copied to clipboard
data class AuthRequest(val client: ClientId, val scopes: List<String>, val redirectUri: Uri?, val state: State?, val responseType: ResponseType = Code, val nonce: Nonce? = null, val responseMode: ResponseMode? = null, val request: RequestJwtContainer? = null, val requestObject: RequestObject? = null, val additionalProperties: Map<String, Any> = emptyMap(), val codeChallenge: String? = null)
Link copied to clipboard
fun interface AuthRequestExtractor
Link copied to clipboard

Provides a mechanism to track OAuth authorization parameters to be used later (i.e. can be used later to generate code and/or tokens)

Link copied to clipboard
class AuthRequestTrackingFilter(tracking: AuthRequestTracking, extractor: AuthRequestExtractor, authoriseRequestErrorRender: AuthoriseRequestErrorRender) : Filter
Link copied to clipboard
data class ClientId(val value: String)
Link copied to clipboard
Link copied to clipboard
class ClientValidationFilter(authoriseRequestValidator: AuthoriseRequestValidator, errorRenderer: AuthoriseRequestErrorRender, extractor: AuthRequestExtractor) : Filter
Link copied to clipboard
interface ClientValidator

Provides a consistent way to retrieve clients attempting to use an authorization code flow

Link copied to clipboard
data class ErrorResponse(val error: String, val error_description: String, val error_uri: String?)
Link copied to clipboard
Link copied to clipboard
class GenerateAccessToken(authorizationCodes: AuthorizationCodes, accessTokens: AccessTokens, clock: Clock, idTokens: IdTokens, refreshTokens: RefreshTokens, errorRenderer: JsonResponseErrorRenderer, grantTypes: GrantTypesConfiguration, tokenResponseRenderer: AccessTokenResponseRenderer = DefaultAccessTokenResponseRenderer) : Function1<request: Request, Response>
Link copied to clipboard
interface IdTokens
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class InvalidRequest(val message: String) : AccessTokenError
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class JsonResponseErrorRenderer(json: AutoMarshalling, documentationUri: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class OAuthError(val rfcError: RfcError, val description: String)
Link copied to clipboard
class OAuthServer(tokenPath: String, authRequestTracking: AuthRequestTracking, authoriseRequestValidator: AuthoriseRequestValidator, accessTokenRequestAuthentication: AccessTokenRequestAuthentication, authorizationCodes: AuthorizationCodes, accessTokens: AccessTokens, clock: Clock, json: AutoMarshalling = OAuthMoshi, authRequestExtractor: AuthRequestExtractor = AuthRequestFromQueryParameters, grantTypes: GrantTypesConfiguration = GrantTypesConfiguration.default(accessTokenRequestAuthentication), idTokens: IdTokens = IdTokens.Unsupported, refreshTokens: RefreshTokens = RefreshTokens.Unsupported, requestJWTValidator: RequestJWTValidator = RequestJWTValidator.Unsupported, documentationUri: String? = null, tokenResponseRenderer: AccessTokenResponseRenderer = DefaultAccessTokenResponseRenderer)

Provide help creating OAuth Authorization Server with Authorization Code Flow

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface ResponseRender
Link copied to clipboard
Link copied to clipboard
data class TokenRequest(val grantType: GrantType, val clientId: ClientId?, val clientSecret: String?, val code: String?, val redirectUri: Uri?, val scopes: List<String>, val clientAssertionType: Uri?, val clientAssertion: String?, val refreshToken: RefreshToken?)
Link copied to clipboard
data class UnsupportedGrantType(val requestedGrantType: String) : AccessTokenError
Link copied to clipboard
data class UnsupportedResponseType(val requestedResponseType: String) : AuthorizationError
Link copied to clipboard

Functions