Skip to content

Commit de898dd

Browse files
authored
Allow custom HTTP clients for OAuth (#908)
* feat: allow custom HTTP clients for OAuth * fix(auth): preserve configured client for refresh * fix(auth): harden OAuth HTTP adapter * refactor(auth): simplify OAuth HTTP plumbing * fix(auth): stop refresh token redirects by default * fix(auth): re-export OAuth HTTP client types
1 parent 3c5ce2b commit de898dd

2 files changed

Lines changed: 579 additions & 127 deletions

File tree

crates/rmcp/src/transport.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ pub use auth::JwtSigningAlgorithm;
101101
pub use auth::{
102102
AuthClient, AuthError, AuthorizationManager, AuthorizationSession, AuthorizedHttpClient,
103103
ClientCredentialsConfig, CredentialStore, EXTENSION_OAUTH_CLIENT_CREDENTIALS,
104-
InMemoryCredentialStore, InMemoryStateStore, ScopeUpgradeConfig, StateStore,
105-
StoredAuthorizationState, StoredCredentials, WWWAuthenticateParams,
104+
InMemoryCredentialStore, InMemoryStateStore, OAuthHttpClient, OAuthHttpClientError,
105+
OAuthHttpClientFuture, OAuthHttpRedirectPolicy, OAuthHttpRequest, ScopeUpgradeConfig,
106+
StateStore, StoredAuthorizationState, StoredCredentials, WWWAuthenticateParams,
106107
};
107108

108109
// #[cfg(feature = "transport-ws")]

0 commit comments

Comments
 (0)