Repository navigation
feat: publish RBAC scopes in OAuth2 metadata endpoints - #19942
Merged
ThomasK33 merged 1 commit intoSep 26, 2025
Merged
Conversation
This was referenced Sep 24, 2025
Member
Author
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 24, 2025 16:08
d62d594 to
57ec770
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 24, 2025 16:09
c86d555 to
b630882
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
2 times, most recently
from
September 24, 2025 16:27
411151c to
73e3922
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 24, 2025 16:27
b630882 to
143c808
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 24, 2025 16:42
73e3922 to
3f1594c
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 24, 2025 16:42
143c808 to
93a509e
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 24, 2025 16:44
3f1594c to
dd9a21c
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 24, 2025 16:44
93a509e to
8707c00
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 24, 2025 20:50
dd9a21c to
0edbf0c
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 24, 2025 20:50
8707c00 to
2b7e3a9
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 15:46
0edbf0c to
bb211fa
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 15:46
2b7e3a9 to
20c22fe
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 15:46
bb211fa to
a4a9d57
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 15:46
20c22fe to
22123c0
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 15:56
a4a9d57 to
acadd79
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 15:56
22123c0 to
3eeb008
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 16:07
acadd79 to
b8267e1
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 16:07
3eeb008 to
350aacf
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 16:25
350aacf to
58e600e
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 16:32
9e0bf76 to
f851f7f
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 16:48
58e600e to
36b876b
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 17:00
f851f7f to
907f0c3
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 17:06
36b876b to
55d1084
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 17:20
907f0c3 to
9e0bf76
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 17:27
55d1084 to
58e600e
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 17:33
9e0bf76 to
1c54aa1
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
2 times, most recently
from
September 25, 2025 17:39
fb54cae to
c6efbe0
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
from
September 25, 2025 17:39
1c54aa1 to
92a39d1
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 25, 2025 18:01
c6efbe0 to
94ad114
Compare
ThomasK33
marked this pull request as ready for review
September 25, 2025 18:13
Emyrk
approved these changes
Sep 25, 2025
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 26, 2025 07:45
94ad114 to
716c772
Compare
ThomasK33
force-pushed
the
thomask33/09-22-canonicalize_special_api_key_scopes
branch
2 times, most recently
from
September 26, 2025 08:25
1d1eb15 to
fd6e329
Compare
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 26, 2025 08:25
716c772 to
8f4b99b
Compare
johnstcn
approved these changes
Sep 26, 2025
Member
Author
Merge activity
|
ThomasK33
changed the base branch from
thomask33/09-22-canonicalize_special_api_key_scopes
to
graphite-base/19942
September 26, 2025 09:44
Replace empty slice placeholders with rbac.ExternalScopeNames() to publish supported OAuth2 scopes from the curated RBAC scope catalog in both authorization server and protected resource metadata endpoints. Update tests to verify proper scope exposure instead of empty arrays.
ThomasK33
force-pushed
the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
from
September 26, 2025 09:57
8f4b99b to
9de28ef
Compare
ThomasK33
deleted the
thomask33/09-24-add_oauth2_external_scope_metadata
branch
September 26, 2025 10:15
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Publish supported OAuth2 scopes from RBAC external scope names
This PR updates the OAuth2 metadata endpoints to publish the supported scopes from the RBAC external scope names. Previously, the
ScopesSupportedfield was empty with a TODO to implement a scope system. Now, both the authorization server metadata and protected resource metadata endpoints return the list of scopes fromrbac.ExternalScopeNames().The tests have been updated to verify that the correct scopes are being returned in the metadata responses.