Share via


WwwAuthenticateParameters.CreateFromResourceResponseAsync Method

Definition

Overloads

CreateFromResourceResponseAsync(HttpClient, String, CancellationToken)
Obsolete.

Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.

CreateFromResourceResponseAsync(String)
Obsolete.

Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.

CreateFromResourceResponseAsync(String, CancellationToken)
Obsolete.

Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.

CreateFromResourceResponseAsync(HttpClient, String, CancellationToken)

Caution

This api is now obsolete and has been replaced with replaced with CreateFromAuthenticationResponseAsync(HttpResponseHeaders, string)

Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.

[System.Obsolete("This api is now obsolete and has been replaced with replaced with CreateFromAuthenticationResponseAsync(HttpResponseHeaders, string)")]
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters> CreateFromResourceResponseAsync (System.Net.Http.HttpClient httpClient, string resourceUri, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This api is now obsolete and has been replaced with replaced with CreateFromAuthenticationResponseAsync(HttpResponseHeaders, string)")>]
static member CreateFromResourceResponseAsync : System.Net.Http.HttpClient * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters>
Public Shared Function CreateFromResourceResponseAsync (httpClient As HttpClient, resourceUri As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of WwwAuthenticateParameters)

Parameters

httpClient
HttpClient

Instance of HttpClient to make the request with.

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.

Attributes

Applies to

CreateFromResourceResponseAsync(String)

Caution

This api is now obsolete and has been replaced with CreateFromAuthenticationResponseAsync(...)

Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.

[System.Obsolete("This api is now obsolete and has been replaced with CreateFromAuthenticationResponseAsync(...)")]
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters> CreateFromResourceResponseAsync (string resourceUri);
[<System.Obsolete("This api is now obsolete and has been replaced with CreateFromAuthenticationResponseAsync(...)")>]
static member CreateFromResourceResponseAsync : string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters>
Public Shared Function CreateFromResourceResponseAsync (resourceUri As String) As Task(Of WwwAuthenticateParameters)

Parameters

resourceUri
String

URI of the resource.

Returns

WWW-Authenticate Parameters extracted from response to the unauthenticated call.

Attributes

Applies to

CreateFromResourceResponseAsync(String, CancellationToken)

Caution

This api is now obsolete and has been replaced with CreateFromAuthenticationResponseAsync(...)

Create the authenticate parameters by attempting to call the resource unauthenticated, and analyzing the response.

[System.Obsolete("This api is now obsolete and has been replaced with CreateFromAuthenticationResponseAsync(...)")]
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters> CreateFromResourceResponseAsync (string resourceUri, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This api is now obsolete and has been replaced with CreateFromAuthenticationResponseAsync(...)")>]
static member CreateFromResourceResponseAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.WwwAuthenticateParameters>
Public Shared Function CreateFromResourceResponseAsync (resourceUri As String, Optional cancellationToken As CancellationToken = Nothing) As Task(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.

Attributes

Applies to