Field AuthzCheck

Assembly: redb.Identity.Contracts.dll

Granular authorization check for the management surface: given a resource, an action and the
scopes an already-authenticated caller holds, decides whether the call may proceed.

Transport-neutral on purpose. Every facade authenticates in its own vocabulary but must not carry
its own copy of the scope table - two copies drift, and the one that drifts quietly is the one
that grants too much. So the table lives here, once, and each transport supplies three inputs:

identity:authz-resource - the canonical resource identifier, e.g.
/api/v1/identity/users. HTTP passes its own path unchanged; other transports map their
addresses onto the same identifiers.identity:authz-action - read or write. Write implies read, never the
inverse.identity:management-scopes - set by the authentication step that ran before this
one ().

A refusal is a 403 with insufficient_scope, in the same shape the rest of Core uses for its
verdicts, so each facade renders it in its own protocol without a second table.

public const string AuthzCheck = "direct-vm://identity-authz-check"