Config

A configuration for the oauth authentication provider.

Properties

Link copied to clipboard
lateinit var client: HttpClient

An HTTP client instance used to make requests to the OAuth server.

Link copied to clipboard
val name: String?

is the name of the provider, or null for a default provider.

Link copied to clipboard

A lookup function to find OAuth server settings for the particular call.

Link copied to clipboard

Specifies a redirect route that is opened when authorization is completed.

Functions

Link copied to clipboard
fun skipWhen(predicate: (ApplicationCall) -> Boolean)

Adds an authentication filter to the list. For every application call the specified predicate is applied and if it returns true then the authentication provider is skipped (no auth required for this call with this provider).