Companion

object Companion

Functions

Link copied to clipboard
fun fromClaim(claimName: String, roleOf: (String) -> RouteRole?): JwtRolesMapper

Reads roles from a string or list-of-strings claim named claimName, converting each value to a RouteRole via roleOf.

Link copied to clipboard
fun fromScope(roleOf: (String) -> RouteRole?): JwtRolesMapper

Reads roles from the space-delimited scope claim (OAuth 2.0), converting each scope token to a RouteRole via roleOf.

Link copied to clipboard

Returns a mapper that always yields an empty set.