WwwAuthenticateParameters.CreateFromAuthenticationResponseAsync Method
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.
Overloads
CreateFromAuthenticationResponseAsync(String, CancellationToken) |
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response. |
CreateFromAuthenticationResponseAsync(String, HttpClient, CancellationToken) |
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response. |
CreateFromAuthenticationResponseAsync(String, String, CancellationToken) |
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response. |
CreateFromAuthenticationResponseAsync(String, String, HttpClient, CancellationToken) |
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response. |
CreateFromAuthenticationResponseAsync(String, CancellationToken)
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Identity.Client.WwwAuthenticateParameters>> CreateFromAuthenticationResponseAsync (string resourceUri, System.Threading.CancellationToken cancellationToken = default);
static member CreateFromAuthenticationResponseAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Identity.Client.WwwAuthenticateParameters>>
Public Shared Function CreateFromAuthenticationResponseAsync (resourceUri As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of WwwAuthenticateParameters))
Parameters
- resourceUri
- String
URI of the resource.
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
WWW-Authenticate Parameters extracted from response to the unauthenticated call.
Applies to
CreateFromAuthenticationResponseAsync(String, HttpClient, CancellationToken)
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.
public static System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Identity.Client.WwwAuthenticateParameters>> CreateFromAuthenticationResponseAsync (string resourceUri, System.Net.Http.HttpClient httpClient, System.Threading.CancellationToken cancellationToken = default);
static member CreateFromAuthenticationResponseAsync : string * System.Net.Http.HttpClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Identity.Client.WwwAuthenticateParameters>>
Public Shared Function CreateFromAuthenticationResponseAsync (resourceUri As String, httpClient As HttpClient, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of WwwAuthenticateParameters))
Parameters
- resourceUri
- String
URI of the resource.
- httpClient
- HttpClient
Instance of HttpClient to make the request with.
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
WWW-Authenticate Parameters extracted from response to the unauthenticated call.
Applies to
CreateFromAuthenticationResponseAsync(String, String, CancellationToken)
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters> CreateFromAuthenticationResponseAsync (string resourceUri, string scheme, System.Threading.CancellationToken cancellationToken = default);
static member CreateFromAuthenticationResponseAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters>
Public Shared Function CreateFromAuthenticationResponseAsync (resourceUri As String, scheme As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of WwwAuthenticateParameters)
Parameters
- resourceUri
- String
URI of the resource.
- scheme
- String
Authentication scheme.
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
WWW-Authenticate Parameters extracted from response to the unauthenticated call.
Applies to
CreateFromAuthenticationResponseAsync(String, String, HttpClient, CancellationToken)
Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters> CreateFromAuthenticationResponseAsync (string resourceUri, string scheme, System.Net.Http.HttpClient httpClient, System.Threading.CancellationToken cancellationToken = default);
static member CreateFromAuthenticationResponseAsync : string * string * System.Net.Http.HttpClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters>
Public Shared Function CreateFromAuthenticationResponseAsync (resourceUri As String, scheme As String, httpClient As HttpClient, Optional cancellationToken As CancellationToken = Nothing) As Task(Of WwwAuthenticateParameters)
Parameters
- resourceUri
- String
URI of the resource.
- scheme
- String
Authentication scheme.
- httpClient
- HttpClient
Instance of HttpClient to make the request with.
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
WWW-Authenticate Parameters extracted from response to the unauthenticated call.