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.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk