Role

mbauer83.zio_http_authorization.Role$
object Role

Roles are the basic units of role-based authorization. They are tags which can be associated in a many-to-many fashion with Users. AuthorizationPolicies can then check if a given User is authorized to to access or perform a specific kind of action on a given Resource based on data from the resource and from the user, including Roles and Permissions.

This library defined three common default roles: SUPER, ADMIN, and USER.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Role.type

Members list

Type members

Classlikes

case class Role(name: String | Symbol)

A specific role held by a User

A specific role held by a User

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete fields

val ADMIN: Role
val SUPER: Role
val USER: Role