class Configuration : Configuration
Basic auth configuration
var charset: <ERROR CLASS>?
Specifies the charset to be used. It can be either UTF_8 or null.
Setting |
|
var realm: String
Specifies realm to be passed in |
val name: String?
is the name of the provider, or |
|
val pipeline: AuthenticationPipeline
Authentication pipeline for this provider. |
fun validate(body: suspend ApplicationCall.(UserPasswordCredential) -> Principal?): Unit
Sets a validation function that will check given UserPasswordCredential instance and return Principal, or null if credential does not correspond to an authenticated principal |
fun skipWhen(predicate: (ApplicationCall) -> Boolean): Unit
Adds an authentication filter to the list.
For every application call the specified predicate is applied and if it returns |