AuthenticationSchemeWithRoles

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.

Report a problem

Type Parameters

P

the principal type.

R

the role type.

Properties

Link copied to clipboard
val base: B

authentication scheme that provides the principal.

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.