Implementation of SEP835 : Scope parameter parsing from WWW-Authenticate headers#595
Open
fizy069 wants to merge 4 commits intomodelcontextprotocol:mainfrom
Open
Implementation of SEP835 : Scope parameter parsing from WWW-Authenticate headers#595fizy069 wants to merge 4 commits intomodelcontextprotocol:mainfrom
fizy069 wants to merge 4 commits intomodelcontextprotocol:mainfrom
Conversation
Implements scope parameter parsing from WWW-Authenticate headers and 403 insufficient_scope error handling per SEP-835.
d8d46f1 to
629f5c5
Compare
- Add ScopeUpgradeConfig for configurable retry limits - Track granted scopes in StoredCredentials and AuthorizationManager - Implement scope union computation for progressive authorization - Add request_scope_upgrade() for 403 insufficient_scope handling - Add select_scopes() with WWW-Authenticate priority per SEP-835 - Export new types: ScopeUpgradeConfig, WWWAuthenticateParams, AuthClient
629f5c5 to
2d4310b
Compare
scutuatua-crypto
approved these changes
Jan 10, 2026
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.
Implement SEP-835 Enhanced Authorization Flows
Motivation and Context
This PR implements SEP-835 Enhanced Authorization Flows support in the Rust SDK, tracking issue #515.
Features added :
How Has This Been Tested?
Breaking Changes
None. Couple of warnings due to an older function being deprecated.
Types of changes
Checklist