AuthenticationHeaderParser.ParseAuthenticationHeadersAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| ParseAuthenticationHeadersAsync(String, CancellationToken) |
Tworzy parametry uwierzytelniania, próbując wywołać zasób nieuwierzytelniony i analizując odpowiedź. |
| ParseAuthenticationHeadersAsync(String, HttpClient, CancellationToken) |
Tworzy parametry uwierzytelniania, próbując wywołać zasób nieuwierzytelniony i analizując odpowiedź. |
ParseAuthenticationHeadersAsync(String, CancellationToken)
Tworzy parametry uwierzytelniania, próbując wywołać zasób nieuwierzytelniony i analizując odpowiedź.
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationHeaderParser> ParseAuthenticationHeadersAsync(string resourceUri, System.Threading.CancellationToken cancellationToken = default);
static member ParseAuthenticationHeadersAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationHeaderParser>
Public Shared Function ParseAuthenticationHeadersAsync (resourceUri As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AuthenticationHeaderParser)
Parametry
- resourceUri
- String
Identyfikator URI zasobu.
- cancellationToken
- CancellationToken
Token anulowania w celu anulowania operacji.
Zwraca
Wystąpienie zawierające dane nagłówka AuthenticationHeaderParser uwierzytelniania.
Dotyczy
ParseAuthenticationHeadersAsync(String, HttpClient, CancellationToken)
Tworzy parametry uwierzytelniania, próbując wywołać zasób nieuwierzytelniony i analizując odpowiedź.
public static System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationHeaderParser> ParseAuthenticationHeadersAsync(string resourceUri, System.Net.Http.HttpClient httpClient, System.Threading.CancellationToken cancellationToken = default);
static member ParseAuthenticationHeadersAsync : string * System.Net.Http.HttpClient * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationHeaderParser>
Public Shared Function ParseAuthenticationHeadersAsync (resourceUri As String, httpClient As HttpClient, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AuthenticationHeaderParser)
Parametry
- resourceUri
- String
Identyfikator URI zasobu.
- httpClient
- HttpClient
Wystąpienie polecenia , za pomocą którego HttpClient należy wysłać żądanie.
- cancellationToken
- CancellationToken
Token anulowania w celu anulowania operacji.
Zwraca
Wystąpienie zawierające dane nagłówka AuthenticationHeaderParser uwierzytelniania.
Wyjątki
Zgłaszany, jeśli wartość resourceUri lub httpClient ma wartość null.