Crosswake.Companions.Sigra.Evaluator (crosswake v0.1.2)

View Source

Pure Sigra route-auth evaluator for backend-owned session authority.

The evaluator is intentionally transport-agnostic. It does not issue step-up intents, renew Phoenix sessions, halt LiveViews, or validate provider returns.

Summary

Functions

evaluate_route_auth(route, auth_context, opts \\ [])

@spec evaluate_route_auth(
  Crosswake.Manifest.Types.RouteEntry.t() | nil,
  Crosswake.Companions.Sigra.Contracts.AuthContext.t() | nil,
  keyword()
) ::
  {:allow, Crosswake.Companions.Sigra.Evaluator.Result.t()}
  | {:deny, Crosswake.Shell.Denial.t()}