Enum McpAuthentication Config
Generated from cargo doc --no-deps -p nemo-fabric-core.
pub enum McpAuthenticationConfig {
OAuth2 {
client_id: Option<String>,
client_secret_env: Option<String>,
scopes: Vec<String>,
redirect_uri: Option<String>,
enable_dynamic_registration: bool,
client_name: Option<String>,
token_endpoint_auth_method: Option<OAuthTokenEndpointAuthMethod>,
authorization_timeout_seconds: u64,
},
ServiceAccount {
client_id: String,
client_secret_env: String,
token_url: String,
scopes: Vec<String>,
token_endpoint_auth_method: Option<OAuthTokenEndpointAuthMethod>,
token_cache_buffer_seconds: u64,
},
}
MCP server authentication configuration.
Variants
OAuth2
OAuth2
OAuth 2.0 authorization-code authentication.
Fields
client_id: Option<String>
Pre-registered OAuth client identifier. Omit to allow dynamic registration.
client_secret_env: Option<String>
Environment variable containing the OAuth client secret.
scopes: Vec<String>
OAuth scopes requested by the MCP client.
redirect_uri: Option<String>
OAuth callback URI for clients that require a pre-registered redirect URI.
enable_dynamic_registration: bool
Whether the client may register dynamically when client_id is omitted.
client_name: Option<String>
Client name advertised during dynamic registration.
token_endpoint_auth_method: Option<OAuthTokenEndpointAuthMethod>
Client authentication method used at the token endpoint.
authorization_timeout_seconds: u64
Maximum time to wait for interactive authorization.
ServiceAccount
ServiceAccount
OAuth 2.0 client-credentials authentication for headless workloads.
Fields
client_id: String
OAuth client identifier.
client_secret_env: String
Environment variable containing the OAuth client secret.
token_url: String
OAuth token endpoint.
scopes: Vec<String>
OAuth scopes requested by the MCP client.
token_endpoint_auth_method: Option<OAuthTokenEndpointAuthMethod>
Client authentication method used at the token endpoint.
token_cache_buffer_seconds: u64
Refresh the cached token this many seconds before expiry.
Trait Implementations
impl Clone for McpAuthenticationConfig
impl Clone for McpAuthenticationConfig
clone
fn clone(&self) -> McpAuthenticationConfig
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for McpAuthenticationConfig
impl Debug for McpAuthenticationConfig
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for McpAuthenticationConfig
impl<'de> Deserialize<'de> for McpAuthenticationConfig
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl JsonSchema for McpAuthenticationConfig
impl JsonSchema for McpAuthenticationConfig
schema_name
fn schema_name() -> Cow<'static, str>
schema_id
fn schema_id() -> Cow<'static, str>
json_schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
inline_schema
fn inline_schema() -> bool
impl PartialEq for McpAuthenticationConfig
impl PartialEq for McpAuthenticationConfig
eq
fn eq(&self, other: &McpAuthenticationConfig) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for McpAuthenticationConfig
impl Serialize for McpAuthenticationConfig
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for McpAuthenticationConfig
impl StructuralPartialEq for McpAuthenticationConfig