Class IdentityScopes
Central registry of OAuth scopes recognised by the management API.
Scope strings encode resource:action directly — RFC 6749 §3.3 stays the
transport, but each scope identifies WHICH admin surface it grants access to
and AT WHICH level (read vs write). Operators see a tree-shaped picker on
/admin/roles/{id} by parsing the colon; the token claim remains a flat
space-separated string, fully compatible with every OIDC consumer.
Action semantics (Option B — preview.1):
:read — GET on the resource's collection / item.:write — POST / PUT / PATCH / DELETE. Includes DELETE on
purpose; granting "manage" semantics with two levels (read / write)
keeps the catalogue compact while still meaningfully separating
audit-reader machines from mutation-capable ones.
Authorisation precedence at the management gate (GranularScopeGuardProcessor):
Token holds : pass (master admin).Token holds and path is /me/*: pass.Token holds and method is GET-class: pass.Token holds the resource's :read for GET, or :write
for mutations: pass.Otherwise: 403 insufficient_scope.
public static class IdentityScopes