Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Configuration Inheritance: System.ObjectSyntax
Summary
OAuth2 configuration for client credentials flow.Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
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
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
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 OAuth2 configuration.Syntax
Returns
Type:System.Collections.Generic.IEnumerable<string>
Validation errors.