Auth

io.github.edadma.apion.AuthMiddleware.Auth
case class Auth(user: String, roles: Set[String])

Authentication context for requests

Attributes

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

Members list

Value members

Concrete methods

def hasRequiredRoles(requiredRoles: Set[String]): Boolean

Check if user has any of the required roles

Check if user has any of the required roles

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product