Configuration

class Configuration : AuthenticationProvider.Configuration

Bearer auth configuration.

Functions

Link copied to clipboard
fun skipWhen(predicate: (ApplicationCall) -> Boolean)
Link copied to clipboard
fun validate(body: suspend ApplicationCall.(BearerCredential) -> Principal?)

Sets a validation function that will check given BearerCredential instance and return Principal, or null if credential does not correspond to an authenticated principal.

Properties

Link copied to clipboard
val name: String?
Link copied to clipboard
val pipeline: AuthenticationPipeline

Sources

Link copied to clipboard