DynamicProviderConfig

class DynamicProviderConfig(name: String?) : AuthenticationProvider.Config

A configuration that creates a provider based on the AuthenticationConfig.provider block.

Constructors

Link copied to clipboard
fun DynamicProviderConfig(name: String?)

Functions

Link copied to clipboard
fun authenticate(block: (context: AuthenticationContext) -> Unit)
Link copied to clipboard
fun skipWhen(predicate: (<ERROR CLASS>) -> 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
val name: String?

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