你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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.