ArmSecurityInsightsModelFactory.OAuthModel Method

Definition

public static Azure.ResourceManager.SecurityInsights.Models.OAuthModel OAuthModel(string authorizationCode = default, string clientSecret = default, string clientId = default, bool? isCredentialsInHeaders = default, string scope = default, Uri redirectUri = default, string grantType = default, string tokenEndpoint = default, System.Collections.Generic.IDictionary<string,string> tokenEndpointHeaders = default, System.Collections.Generic.IDictionary<string,string> tokenEndpointQueryParameters = default, string authorizationEndpoint = default, System.Collections.Generic.IDictionary<string,string> authorizationEndpointHeaders = default, System.Collections.Generic.IDictionary<string,string> authorizationEndpointQueryParameters = default, bool? isJwtBearerFlow = default, string accessTokenPrepend = default);
static member OAuthModel : string * string * string * Nullable<bool> * string * Uri * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * string -> Azure.ResourceManager.SecurityInsights.Models.OAuthModel
Public Shared Function OAuthModel (Optional authorizationCode As String = Nothing, Optional clientSecret As String = Nothing, Optional clientId As String = Nothing, Optional isCredentialsInHeaders As Nullable(Of Boolean) = Nothing, Optional scope As String = Nothing, Optional redirectUri As Uri = Nothing, Optional grantType As String = Nothing, Optional tokenEndpoint As String = Nothing, Optional tokenEndpointHeaders As IDictionary(Of String, String) = Nothing, Optional tokenEndpointQueryParameters As IDictionary(Of String, String) = Nothing, Optional authorizationEndpoint As String = Nothing, Optional authorizationEndpointHeaders As IDictionary(Of String, String) = Nothing, Optional authorizationEndpointQueryParameters As IDictionary(Of String, String) = Nothing, Optional isJwtBearerFlow As Nullable(Of Boolean) = Nothing, Optional accessTokenPrepend As String = Nothing) As OAuthModel

Parameters

authorizationCode
String

The user's authorization code.

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.

isCredentialsInHeaders
Nullable<Boolean>

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

scope
String

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

redirectUri
Uri

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

grantType
String

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

tokenEndpoint
String

The token endpoint. Defines the OAuth2 refresh token.

tokenEndpointHeaders
IDictionary<String,String>

The token endpoint headers.

tokenEndpointQueryParameters
IDictionary<String,String>

The token endpoint query parameters.

authorizationEndpoint
String

The authorization endpoint.

authorizationEndpointHeaders
IDictionary<String,String>

The authorization endpoint headers.

authorizationEndpointQueryParameters
IDictionary<String,String>

The authorization endpoint query parameters.

isJwtBearerFlow
Nullable<Boolean>

A value indicating whether it's a JWT flow.

accessTokenPrepend
String

Access token prepend. Default is 'Bearer'.

Returns

A new OAuthModel instance for mocking.

Applies to