Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.Object

Syntax

Summary

Authentication configuration for connecting to OData services.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

ApiKey

Gets or sets the API key for API key authentication.

Syntax

Property Value

Type: string? The API key value.

ApiKeyHeader

Gets or sets the API key header name.

Syntax

Property Value

Type: string The name of the header to include the API key in.

BasicAuth

Gets or sets the basic authentication credentials.

Syntax

Property Value

Type: Microsoft.OData.Mcp.Core.Configuration.BasicAuthenticationCredentials? The username and password for basic authentication.

BearerToken

Gets or sets the bearer token for bearer token authentication.

Syntax

Property Value

Type: string? The bearer token value.

OAuth2

Gets or sets the OAuth2 configuration.

Syntax

Property Value

Type: Microsoft.OData.Mcp.Core.Configuration.OAuth2Configuration? Configuration for OAuth2 client credentials flow.

Type

Gets or sets the authentication type for the OData service.

Syntax

Property Value

Type: Microsoft.OData.Mcp.Core.Configuration.ODataAuthenticationType? The type of authentication to use when connecting to the OData service.

Methods

Clone

Creates a copy of this configuration.

Syntax

Returns

Type: Microsoft.OData.Mcp.Core.Configuration.ODataAuthenticationConfiguration A new instance with the same settings.

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

MergeWith

Merges another configuration into this one.

Syntax

Parameters

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

Validate

Validates the authentication configuration.

Syntax

Returns

Type: System.Collections.Generic.IEnumerable<string> A collection of validation errors, or empty if the configuration is valid.