> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/fabric/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/fabric/_mcp/server.

# Enum McpAuthentication Config

> MCP server authentication configuration.

Generated from `cargo doc --no-deps -p nemo-fabric-core`.

<pre />

MCP server authentication configuration.

## Variants

### `OAuth2`

<pre />

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`

<pre />

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`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for McpAuthenticationConfig`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for McpAuthenticationConfig`

<pre />

#### `deserialize`

<pre />

### `impl JsonSchema for McpAuthenticationConfig`

<pre />

#### `schema_name`

<pre />

#### `schema_id`

<pre />

#### `json_schema`

<pre />

#### `inline_schema`

<pre />

### `impl PartialEq for McpAuthenticationConfig`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for McpAuthenticationConfig`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for McpAuthenticationConfig`

<pre />