feat(router): expand signed authorization roles - #23
Merged
Merged
Conversation
Dastari
force-pushed
the
agent/router-role-scope-expansion
branch
from
August 22, 2026 08:41
081b10a to
b1061f9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Outcome
Adds an opt-in, provider-neutral signed role-to-scope catalogue to
graphql-orm-router. A host can configureauthentication.roleScopeCatalogue; the router verifies issuer/audience/purpose/payload/lifetime against its existing JWKS trust, caches a bounded snapshot, expands validated token roles, unions direct scopes, and fails role-bearing requests closed when expansion state is unavailable or stale.This serves consumers beyond any one deployment: any JWT issuer can supply its own role IDs, scope values, catalogue URL, signing key, audience, cache policy, and matcher policy. The upstream crates contain no consumer values or defaults.
Also aligns the public
agql-authtype universe in thegraphql-ormauth-agqlfeature,graphql-orm-aire-exports, and the backend-coexistence consumer fixture to mergedagql-auth0.17.0. Versions move tographql-orm/graphql-orm-macros0.25.0,graphql-orm-ai0.90.0, and router 0.3.0.Documentation impact
Updates root/router/AI changelogs, migration guides, README/version inventory, router configuration reference/example, and auth bridge references. Omission is compatibility-preserving; adoption order and rollback are documented.
Verification
auth-agql; 60 + binary smoke without itgraphql-orm --lib --features sqlite,auth-agql: 34 passedgraphql-orm-ai --lib: 247 passedgraphql-ormaffected feature set andgraphql-orm-ai --libgit diff --check: passedgema(case-insensitive) and consumer scope/host strings: empty