Microsoft.Identity.Client.AuthenticationHeaderParser
Parsed authentication headers to retrieve header values from HttpResponseHeaders.
Parameters returned by the Authentication-Info header.
This allows for more complex authentication scenarios, such as Proof-Of-Possession.
Nonce parsed from HttpResponseHeaders. This is acquired from the Proof-of-Possession WWW-Authenticate header or the Authentication-Info header
Parameters returned by the WWW-Authenticate header. This allows for dynamic
scenarios such as Claims challenge, Continuous Access Evaluation (CAE), and Conditional Access auth context.
See our documentation for additional details.
public AuthenticationHeaderParser()
public static AuthenticationHeaderParser ParseAuthenticationHeaders(HttpResponseHeaders httpResponseHeaders)
Creates a parsed set of parameters from the provided HttpResponseHeaders.
public static Task<AuthenticationHeaderParser> ParseAuthenticationHeadersAsync(string resourceUri, CancellationToken cancellationToken = default)
Creates the authentication parameters by attempting to call the resource unauthenticated and analyzing the response.
public static Task<AuthenticationHeaderParser> ParseAuthenticationHeadersAsync(string resourceUri, HttpClient httpClient, CancellationToken cancellationToken = default)