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 Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article