共用方式為


OAuthModel Class

Definition

Model for API authentication with OAuth2.

public class OAuthModel : Azure.ResourceManager.SecurityInsights.Models.CcpAuthConfig, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecurityInsights.Models.OAuthModel>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecurityInsights.Models.OAuthModel>
type OAuthModel = class
    inherit CcpAuthConfig
    interface IJsonModel<OAuthModel>
    interface IPersistableModel<OAuthModel>
Public Class OAuthModel
Inherits CcpAuthConfig
Implements IJsonModel(Of OAuthModel), IPersistableModel(Of OAuthModel)
Inheritance
OAuthModel
Implements

Constructors

OAuthModel(String, String, String, String)

Initializes a new instance of OAuthModel.

Properties

AccessTokenPrepend

Access token prepend. Default is 'Bearer'.

AuthorizationCode

The user's authorization code.

AuthorizationEndpoint

The authorization endpoint.

AuthorizationEndpointHeaders

The authorization endpoint headers.

AuthorizationEndpointQueryParameters

The authorization endpoint query parameters.

ClientId

The Application (client) ID that the OAuth provider assigned to your app.

ClientSecret

The Application (client) secret that the OAuth provider assigned to your app.

GrantType

The grant type, usually will be 'authorization code'.

IsCredentialsInHeaders

Indicating whether we want to send the clientId and clientSecret to token endpoint in the headers.

IsJwtBearerFlow

A value indicating whether it's a JWT flow.

RedirectUri

The Application redirect url that the user config in the OAuth provider.

Scope

The Application (client) Scope that the OAuth provider assigned to your app.

TokenEndpoint

The token endpoint. Defines the OAuth2 refresh token.

TokenEndpointHeaders

The token endpoint headers.

TokenEndpointQueryParameters

The token endpoint query parameters.

Explicit Interface Implementations

IJsonModel<CcpAuthConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from CcpAuthConfig)
IJsonModel<CcpAuthConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from CcpAuthConfig)
IJsonModel<OAuthModel>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<OAuthModel>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CcpAuthConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from CcpAuthConfig)
IPersistableModel<CcpAuthConfig>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from CcpAuthConfig)
IPersistableModel<CcpAuthConfig>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from CcpAuthConfig)
IPersistableModel<OAuthModel>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OAuthModel>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<OAuthModel>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to