Skip to content

Commit 629f5c5

Browse files
committed
feat(auth): implement SEP-835 runtime scope upgrade flow
- 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
1 parent 2c60c65 commit 629f5c5

File tree

4 files changed

+360
-15
lines changed

4 files changed

+360
-15
lines changed

crates/rmcp/src/transport.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ pub use io::stdio;
9999
pub mod auth;
100100
#[cfg(feature = "auth")]
101101
#[cfg_attr(docsrs, doc(cfg(feature = "auth")))]
102-
pub use auth::{AuthError, AuthorizationManager, AuthorizationSession, AuthorizedHttpClient};
102+
pub use auth::{
103+
AuthClient, AuthError, AuthorizationManager, AuthorizationSession, AuthorizedHttpClient,
104+
ScopeUpgradeConfig, StoredCredentials, WWWAuthenticateParams,
105+
};
103106

104107
// #[cfg(feature = "transport-ws")]
105108
// #[cfg_attr(docsrs, doc(cfg(feature = "transport-ws")))]

0 commit comments

Comments
 (0)