WwwAuthenticateParameters.CreateFromAuthenticationHeaders 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
CreateFromAuthenticationHeaders(HttpResponseHeaders) |
Create WWW-Authenticate parameters from the HttpResponseHeaders for each auth scheme. |
CreateFromAuthenticationHeaders(HttpResponseHeaders, String) |
Create WWW-Authenticate parameters from the HttpResponseHeaders. |
CreateFromAuthenticationHeaders(HttpResponseHeaders)
Create WWW-Authenticate parameters from the HttpResponseHeaders for each auth scheme.
public static System.Collections.Generic.IReadOnlyList<Microsoft.Identity.Client.WwwAuthenticateParameters> CreateFromAuthenticationHeaders (System.Net.Http.Headers.HttpResponseHeaders httpResponseHeaders);
static member CreateFromAuthenticationHeaders : System.Net.Http.Headers.HttpResponseHeaders -> System.Collections.Generic.IReadOnlyList<Microsoft.Identity.Client.WwwAuthenticateParameters>
Public Shared Function CreateFromAuthenticationHeaders (httpResponseHeaders As HttpResponseHeaders) As IReadOnlyList(Of WwwAuthenticateParameters)
Parameters
- httpResponseHeaders
- HttpResponseHeaders
HttpResponseHeaders.
Returns
The parameters requested by the web API.
Remarks
Currently it only supports the Bearer scheme
Applies to
CreateFromAuthenticationHeaders(HttpResponseHeaders, String)
Create WWW-Authenticate parameters from the HttpResponseHeaders.
public static Microsoft.Identity.Client.WwwAuthenticateParameters CreateFromAuthenticationHeaders (System.Net.Http.Headers.HttpResponseHeaders httpResponseHeaders, string scheme);
static member CreateFromAuthenticationHeaders : System.Net.Http.Headers.HttpResponseHeaders * string -> Microsoft.Identity.Client.WwwAuthenticateParameters
Public Shared Function CreateFromAuthenticationHeaders (httpResponseHeaders As HttpResponseHeaders, scheme As String) As WwwAuthenticateParameters
Parameters
- httpResponseHeaders
- HttpResponseHeaders
HttpResponseHeaders.
- scheme
- String
Authentication scheme.
Returns
The parameters requested by the web API.