class Configuration : Configuration
Form auth provider configuration
var
A response to send back if authentication failed |
|
var passwordParamName: String
POST parameter to fetch for a user password |
|
var userParamName: String
POST parameter to fetch for a user name |
val name: String?
is the name of the provider, or |
|
val pipeline: AuthenticationPipeline
Authentication pipeline for this provider. |
fun challenge(function: FormAuthChallengeFunction): Unit
Configure challenge (response to send back) if authentication failed. fun challenge(redirectUrl: String): Unit fun challenge(redirect: Url): Unit
Configure redirect challenge if authentication failed |
|
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 |