pub struct McpOAuthConfig {
pub authorization_url: String,
pub token_url: String,
pub client_id: String,
pub scopes: Vec<String>,
pub audience: Option<String>,
pub callback_port: u16,
pub flow_timeout_secs: u64,
pub credentials_store_mode: AuthCredentialsStoreMode,
pub extra_auth_params: BTreeMap<String, String>,
pub extra_token_params: BTreeMap<String, String>,
}Expand description
Configuration for OAuth-enabled MCP HTTP providers.
Fields§
OAuth authorization endpoint.
token_url: StringOAuth token endpoint.
client_id: StringOAuth client identifier.
scopes: Vec<String>Requested scopes.
audience: Option<String>Optional audience/resource hint sent with the auth and token requests.
callback_port: u16Local callback server port.
flow_timeout_secs: u64Browser-flow timeout in seconds.
credentials_store_mode: AuthCredentialsStoreModeCredential storage backend for this provider’s token.
extra_auth_params: BTreeMap<String, String>Extra query parameters appended to the authorization URL.
extra_token_params: BTreeMap<String, String>Extra form fields appended to token exchanges and refreshes.
Implementations§
Trait Implementations§
Source§impl Clone for McpOAuthConfig
impl Clone for McpOAuthConfig
Source§fn clone(&self) -> McpOAuthConfig
fn clone(&self) -> McpOAuthConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpOAuthConfig
impl Debug for McpOAuthConfig
Source§impl Default for McpOAuthConfig
impl Default for McpOAuthConfig
Source§impl<'de> Deserialize<'de> for McpOAuthConfigwhere
McpOAuthConfig: Default,
impl<'de> Deserialize<'de> for McpOAuthConfigwhere
McpOAuthConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McpOAuthConfig
impl RefUnwindSafe for McpOAuthConfig
impl Send for McpOAuthConfig
impl Sync for McpOAuthConfig
impl Unpin for McpOAuthConfig
impl UnsafeUnpin for McpOAuthConfig
impl UnwindSafe for McpOAuthConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more