RequireIdentity

works.iterative.workflow.Guard.RequireIdentity
final case class RequireIdentity[R, S](label: String, holds: (GuardContext[R, S]) => Boolean) extends Guard[R, S]

Auth guard leaf — evaluates an arbitrary identity closure; failure → GuardFailure.Unauthorized.

The holds closure receives the full GuardContext, allowing it to bridge userId (the caller's identity) against entity-held handles (e.g. the assigned VedouciProjektu). The bridging logic lives inside the closure, not in the kernel.

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