Config

class Config : AuthenticationProvider.Config

A configuration for the digest authentication provider.

Functions

Link copied to clipboard
fun digestProvider(digest: suspend (userName: String, realm: String) -> ByteArray?)

Configures a digest provider function that should fetch or compute message digest for the specified userName and realm. A message digest is usually computed based on username, realm and password concatenated with the colon character ':'. For example, "$userName:$realm:$password".

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

Properties

Link copied to clipboard
var algorithmName: String

A message digest algorithm to be used. Usually only MD5 is supported by clients.

Link copied to clipboard
val name: String?

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

Link copied to clipboard
var nonceManager: NonceManager

NonceManager to be used to generate nonce values.

Link copied to clipboard
var realm: String

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