Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: publish RBAC scopes in OAuth2 metadata endpoints#19942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

ThomasK33
Copy link
Member

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, theScopesSupported field 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.

@ThomasK33Graphite App
Copy link
MemberAuthor

ThomasK33 commentedSep 24, 2025
edited
Loading

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch fromd62d594 to57ec770CompareSeptember 24, 2025 16:08
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch fromc86d555 tob630882CompareSeptember 24, 2025 16:09
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch 2 times, most recently from411151c to73e3922CompareSeptember 24, 2025 16:27
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch fromb630882 to143c808CompareSeptember 24, 2025 16:27
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from73e3922 to3f1594cCompareSeptember 24, 2025 16:42
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from143c808 to93a509eCompareSeptember 24, 2025 16:42
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from3f1594c todd9a21cCompareSeptember 24, 2025 16:44
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from93a509e to8707c00CompareSeptember 24, 2025 16:44
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch fromdd9a21c to0edbf0cCompareSeptember 24, 2025 20:50
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from8707c00 to2b7e3a9CompareSeptember 24, 2025 20:50
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from0edbf0c tobb211faCompareSeptember 25, 2025 15:46
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from2b7e3a9 to20c22feCompareSeptember 25, 2025 15:46
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch frombb211fa toa4a9d57CompareSeptember 25, 2025 15:46
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from20c22fe to22123c0CompareSeptember 25, 2025 15:46
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch froma4a9d57 toacadd79CompareSeptember 25, 2025 15:56
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from22123c0 to3eeb008CompareSeptember 25, 2025 15:56
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch fromacadd79 tob8267e1CompareSeptember 25, 2025 16:07
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from3eeb008 to350aacfCompareSeptember 25, 2025 16:07
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from350aacf to58e600eCompareSeptember 25, 2025 16:25
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from9e0bf76 tof851f7fCompareSeptember 25, 2025 16:32
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from58e600e to36b876bCompareSeptember 25, 2025 16:48
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch fromf851f7f to907f0c3CompareSeptember 25, 2025 17:00
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from36b876b to55d1084CompareSeptember 25, 2025 17:06
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from907f0c3 to9e0bf76CompareSeptember 25, 2025 17:20
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from55d1084 to58e600eCompareSeptember 25, 2025 17:27
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from9e0bf76 to1c54aa1CompareSeptember 25, 2025 17:33
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch 2 times, most recently fromfb54cae toc6efbe0CompareSeptember 25, 2025 17:39
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch from1c54aa1 to92a39d1CompareSeptember 25, 2025 17:39
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch fromc6efbe0 to94ad114CompareSeptember 25, 2025 18:01
@ThomasK33ThomasK33 marked this pull request as ready for reviewSeptember 25, 2025 18:13
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from94ad114 to716c772CompareSeptember 26, 2025 07:45
@ThomasK33ThomasK33force-pushed thethomask33/09-22-canonicalize_special_api_key_scopes branch 2 times, most recently from1d1eb15 tofd6e329CompareSeptember 26, 2025 08:25
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from716c772 to8f4b99bCompareSeptember 26, 2025 08:25
@ThomasK33Graphite App
Copy link
MemberAuthor

ThomasK33 commentedSep 26, 2025
edited
Loading

Merge activity

  • Sep 26, 9:30 AM UTC: A user started a stack merge that includes this pull request viaGraphite.
  • Sep 26, 9:58 AM UTC:Graphite rebased this pull request as part of a merge.
  • Sep 26, 10:15 AM UTC:@ThomasK33 merged this pull request withGraphite.

@ThomasK33ThomasK33 changed the base branch fromthomask33/09-22-canonicalize_special_api_key_scopes tographite-base/19942September 26, 2025 09:44
@ThomasK33ThomasK33 changed the base branch fromgraphite-base/19942 tomainSeptember 26, 2025 09:56
Replace empty slice placeholders with rbac.ExternalScopeNames() topublish supported OAuth2 scopes from the curated RBAC scope catalog inboth authorization server and protected resource metadata endpoints.Update tests to verify proper scope exposure instead of empty arrays.
@ThomasK33ThomasK33force-pushed thethomask33/09-24-add_oauth2_external_scope_metadata branch from8f4b99b to9de28efCompareSeptember 26, 2025 09:57
@ThomasK33ThomasK33 merged commit05537c1 intomainSep 26, 2025
52 of 54 checks passed
@ThomasK33ThomasK33 deleted the thomask33/09-24-add_oauth2_external_scope_metadata branchSeptember 26, 2025 10:15
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 26, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@EmyrkEmyrkEmyrk approved these changes

Assignees

@ThomasK33ThomasK33

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ThomasK33@johnstcn@Emyrk

[8]ページ先頭

©2009-2025 Movatter.jp