OAuth2SessionsConfig
Configures session storage and principal resolution for an OAuth2SessionFlow.
The OAuth callback authenticates the token exchange. sessionCreator maps the OAuth response to the stored session value S, and validate maps that session to the route principal P. Both are required.
Protected routes use the challenge strategy from TypedSessionAuthConfig.
Type Parameters
the session type stored by the Sessions plugin.
the principal type available in protected route handlers.
Properties
Human-readable description of this authentication scheme.
Default handler for authentication failures.
Maps a successful OAuth response to the session value stored by the Sessions plugin.
Configures how the typed session scheme installs the Sessions plugin.
Functions
Configures CSRF protection for routes authenticated with this session scheme.
Transforms the session value before validate resolves the route principal.
Sets a validation function for the session value.