roles

context(rolesContext: RolesContext<P, R>, routingContext: RoutingContext)
val <P : Any, R : AuthenticationRole> P.roles: Set<R>(source)

Roles resolved for the current role-protected typed route.

The property is available inside route handlers nested in authenticateWith with a AuthenticationSchemeWithRoles.

Report a problem