Configuration
Bearer auth configuration.
Functions
Link copied to clipboard
fun validate(body: suspend ApplicationCall.(BearerCredential) -> Principal?)
Content copied to clipboard
Sets a validation function that will check given BearerCredential instance and return Principal, or null if credential does not correspond to an authenticated principal.