共用方式為


OAuthModel(String, String, String, String) Constructor

Definition

Initializes a new instance of OAuthModel.

public OAuthModel (string clientSecret, string clientId, string grantType, string tokenEndpoint);
new Azure.ResourceManager.SecurityInsights.Models.OAuthModel : string * string * string * string -> Azure.ResourceManager.SecurityInsights.Models.OAuthModel
Public Sub New (clientSecret As String, clientId As String, grantType As String, tokenEndpoint As String)

Parameters

clientSecret
String

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

clientId
String

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

grantType
String

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

tokenEndpoint
String

The token endpoint. Defines the OAuth2 refresh token.

Exceptions

clientSecret, clientId, grantType or tokenEndpoint is null.

Applies to