Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.ObjectSyntax
Summary
Authentication configuration for connecting to OData services.Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
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
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
MergeWith
Merges another configuration into this one.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
other | Microsoft.OData.Mcp.Core.Configuration.ODataAuthenticationConfiguration | The configuration to merge. |
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
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.