Config

A configuration for the basic authentication provider.

Properties

Link copied to clipboard

Specifies the charset to be used. It can be either UTF_8 or null. Setting null turns on a legacy mode (ISO-8859-1).

Link copied to clipboard
val name: String?

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

Link copied to clipboard

Specifies a realm to be passed in the WWW-Authenticate header.

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).

Link copied to clipboard

Sets a validation function that checks a specified UserPasswordCredential instance and returns Principal in a case of successful authentication or null if authentication fails.