Skip to main content

Definition

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

Syntax

Microsoft.OData.Mcp.Core.Configuration.OAuth2Configuration

Summary

OAuth2 configuration for client credentials flow.

Constructors

.ctor

Syntax

public OAuth2Configuration()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

ClientId

Gets or sets the client ID.

Syntax

public string ClientId { get; set; }

Property Value

Type: string

ClientSecret

Gets or sets the client secret.

Syntax

public string ClientSecret { get; set; }

Property Value

Type: string

Scopes

Gets or sets the OAuth2 scopes to request.

Syntax

public System.Collections.Generic.List<string> Scopes { get; set; }

Property Value

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

TokenEndpoint

Gets or sets the OAuth2 token endpoint URL.

Syntax

public string TokenEndpoint { get; set; }

Property Value

Type: string

Methods

Clone

Creates a copy of this configuration.

Syntax

public Microsoft.OData.Mcp.Core.Configuration.OAuth2Configuration Clone()

Returns

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

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?

Validate

Validates the OAuth2 configuration.

Syntax

public System.Collections.Generic.IEnumerable<string> Validate()

Returns

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