TypedFormAuthConfig

Configures a typed Form authentication scheme.

Unlike FormAuthenticationProvider.Config, validate returns P so routes protected by authenticateWith can read principal as the configured type.

This config does not expose provider-level challenge. Set onUnauthorized or pass onUnauthorized to authenticateWith to customize failure responses.

Challenge strategy: a route-level onUnauthorized is used first, then onUnauthorized. If neither is configured, Form authentication responds with its default 401 Unauthorized challenge.

Report a problem

Type Parameters

P

the principal type produced by this scheme.

Properties

Link copied to clipboard

Human-readable description of this authentication scheme.

Link copied to clipboard

Default handler for authentication failures.

Link copied to clipboard

Specifies a POST parameter name used to fetch a password.

Link copied to clipboard

Specifies a POST parameter name used to fetch a username.

Functions

Link copied to clipboard

Sets a validation function for UserPasswordCredential.