OAuthModel(String, String, String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.