OAuthProvider

class OAuthProvider(val providerConfig: OAuthProviderConfig, client: HttpHandler, callbackUri: Uri, val scopes: List<String>, oAuthPersistence: OAuthPersistence, modifyAuthState: (Uri) -> Uri = { it }, generateCrsf: CsrfGenerator = SECURE_CSRF, nonceGenerator: NonceGenerator = SECURE_NONCE, pkceGenerator: PkceGenerator? = null, responseType: ResponseType = Code, idTokenConsumer: IdTokenConsumer = NoOp, accessTokenFetcherAuthenticator: AccessTokenFetcherAuthenticator = ClientSecretAccessTokenFetcherAuthenticator(providerConfig), jwtRedirectionUriBuilder: (RequestJwts) -> RedirectionUriBuilder = ::uriBuilderWithRequestJwt, redirectionUrlBuilder: RedirectionUriBuilder = defaultUriBuilder, accessTokenExtractor: AccessTokenExtractor = ContentTypeJsonOrForm(), responseMode: ResponseMode? = null, originalUri: (Request) -> Uri = Request::uri)

Provides a configured set of objects for use with an OAuth2 provider.

Constructors

Link copied to clipboard
constructor(providerConfig: OAuthProviderConfig, client: HttpHandler, callbackUri: Uri, scopes: List<String>, oAuthPersistence: OAuthPersistence, modifyAuthState: (Uri) -> Uri = { it }, generateCrsf: CsrfGenerator = SECURE_CSRF, nonceGenerator: NonceGenerator = SECURE_NONCE, pkceGenerator: PkceGenerator? = null, responseType: ResponseType = Code, idTokenConsumer: IdTokenConsumer = NoOp, accessTokenFetcherAuthenticator: AccessTokenFetcherAuthenticator = ClientSecretAccessTokenFetcherAuthenticator(providerConfig), jwtRedirectionUriBuilder: (RequestJwts) -> RedirectionUriBuilder = ::uriBuilderWithRequestJwt, redirectionUrlBuilder: RedirectionUriBuilder = defaultUriBuilder, accessTokenExtractor: AccessTokenExtractor = ContentTypeJsonOrForm(), responseMode: ResponseMode? = null, originalUri: (Request) -> Uri = Request::uri)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val api: (request: Request) -> Response
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard