OAuth2FlowConfig

Configures a typed OAuth 2.0 authorization-code flow.

Used by oauth2 to configure the OAuth provider, callback route, and login route.

Report a problem

Properties

Link copied to clipboard

HTTP client used to call the OAuth token endpoint.

Link copied to clipboard

A description of the provider that can be used for API documentation.

Link copied to clipboard

A required route path that starts the OAuth redirect when visited.

Link copied to clipboard

Handles OAuth 2.0 errors such as authorization errors and token exchange failures.

Link copied to clipboard

Resolves OAuth 2.0 server settings for the current routing context.

Link copied to clipboard

Static OAuth 2.0 server settings. Either this or providerLookup must be specified.

Functions

Link copied to clipboard
fun callback(path: String, onSuccess: CallbackSuccessHandler)

Configures the OAuth callback route and success handler.