Skip to main content

Definition

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

Syntax

Summary

OAuth2 configuration for client credentials flow.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

ClientId

Gets or sets the client ID.

Syntax

Property Value

Type: string

ClientSecret

Gets or sets the client secret.

Syntax

Property Value

Type: string

Scopes

Gets or sets the OAuth2 scopes to request.

Syntax

Property Value

Type: System.Collections.Generic.List<string>

TokenEndpoint

Gets or sets the OAuth2 token endpoint URL.

Syntax

Property Value

Type: string

Methods

Clone

Creates a copy of this configuration.

Syntax

Returns

Type: Microsoft.OData.Mcp.Core.Configuration.OAuth2Configuration A new instance with the same values.

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

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

Validate

Validates the OAuth2 configuration.

Syntax

Returns

Type: System.Collections.Generic.IEnumerable<string> Validation errors.