ArmSecurityInsightsModelFactory.JwtAuthModel Method

Definition

public static Azure.ResourceManager.SecurityInsights.Models.JwtAuthModel JwtAuthModel(string tokenEndpoint = default, System.Collections.Generic.IDictionary<string,string> userName = default, System.Collections.Generic.IDictionary<string,string> password = default, System.Collections.Generic.IDictionary<string,string> queryParameters = default, System.Collections.Generic.IDictionary<string,string> headers = default, bool? isCredentialsInHeaders = default, bool? isJsonRequest = default, int? requestTimeoutInSeconds = default);
static member JwtAuthModel : string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * Nullable<bool> * Nullable<int> -> Azure.ResourceManager.SecurityInsights.Models.JwtAuthModel
Public Shared Function JwtAuthModel (Optional tokenEndpoint As String = Nothing, Optional userName As IDictionary(Of String, String) = Nothing, Optional password As IDictionary(Of String, String) = Nothing, Optional queryParameters As IDictionary(Of String, String) = Nothing, Optional headers As IDictionary(Of String, String) = Nothing, Optional isCredentialsInHeaders As Nullable(Of Boolean) = Nothing, Optional isJsonRequest As Nullable(Of Boolean) = Nothing, Optional requestTimeoutInSeconds As Nullable(Of Integer) = Nothing) As JwtAuthModel

Parameters

tokenEndpoint
String

Token endpoint to request JWT.

userName
IDictionary<String,String>

The user name. If user name and password sent in header request we only need to populate the value property with the user name (Same as basic auth). If user name and password sent in body request we need to specify the Key and Value.

password
IDictionary<String,String>

The password.

queryParameters
IDictionary<String,String>

The custom query parameter we want to add once we send request to token endpoint.

headers
IDictionary<String,String>

The custom headers we want to add once we send request to token endpoint.

isCredentialsInHeaders
Nullable<Boolean>

Flag indicating whether we want to send the user name and password to token endpoint in the headers.

isJsonRequest
Nullable<Boolean>

Flag indicating whether the body request is JSON (header Content-Type = application/json), meaning its a Form URL encoded request (header Content-Type = application/x-www-form-urlencoded).

requestTimeoutInSeconds
Nullable<Int32>

Request timeout in seconds.

Returns

A new JwtAuthModel instance for mocking.

Applies to