AuthenticationSchemeWithRoles
class AuthenticationSchemeWithRoles<P : Any, R : AuthenticationRole, C, B : AuthenticationScheme<P, C>>(source)
Typed authentication scheme that checks resolved roles after authentication succeeds.
Routes protected by this scheme receive a RolesContext with principal and roles on the principal.
Type Parameters
P
the principal type.
R
the role type.
Properties
Link copied to clipboard
default handler invoked when authentication succeeds but the principal lacks required roles. A route-level ForbiddenHandler passed to authenticateWith overrides this handler.