RequireRole

works.iterative.workflow.Guard.RequireRole
final case class RequireRole[R, S](role: R) extends Guard[R, S]

Auth guard leaf — checks that the caller holds role; failure → GuardFailure.Unauthorized.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Guard[R, S]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def check(ctx: GuardContext[R, S]): Either[GuardFailure, Unit]

Inherited methods

infix def and(that: Guard[R, S]): Guard[R, S]

Attributes

Inherited from:
Guard
infix def or(that: Guard[R, S]): Guard[R, S]

Attributes

Inherited from:
Guard
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product