hasRole

fun hasRole(role: String): AuthorizationManager<in RequestAuthorizationContext>

Specify that URLs require a particular role.

Return

the AuthorizationManager with the provided role

Parameters

role

the role to require (i.e. USER, ADMIN, etc).