<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview4-GetManagedIdentityCapabilitiesAsync" />

Microsoft.Identity.Client.WwwAuthenticateParameters

Parameters returned by the WWW-Authenticate header. This allows for dynamic scenarios such as Claims challenge, Continuous Access Evaluation (CAE), and Conditional Access (CA). See https://aka.ms/msal-net/wwwAuthenticate.
public string AuthenticationScheme { get; }

AuthScheme. See the documentation on WWW-Authenticate for more details

public string Authority { get; set; }

Authority from which to request an access token.

public string Claims { get; set; }

Claims demanded by the web API.

public string Error { get; set; }

Error.

public string this[string key] { get; }

Return the RawParameters of key key.

public string Nonce { get; }

The nonce acquired from the WWW-Authenticate header.

public string Resource { get; set; }

Resource for which to request scopes. This is the App ID URI of the API that returned the WWW-Authenticate header.

public IEnumerable<string> Scopes { get; set; }

Scopes to request. If it's not provided by the web API, it's computed from the Resource.

public static WwwAuthenticateParameters CreateFromAuthenticationHeaders(HttpResponseHeaders httpResponseHeaders, string scheme)

Create WWW-Authenticate parameters from the HttpResponseHeaders.

Create WWW-Authenticate parameters from the HttpResponseHeaders for each auth scheme.

public static Task<WwwAuthenticateParameters> CreateFromAuthenticationResponseAsync(string resourceUri, string scheme, CancellationToken cancellationToken = default)

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

public static Task<WwwAuthenticateParameters> CreateFromAuthenticationResponseAsync(string resourceUri, string scheme, HttpClient httpClient, CancellationToken cancellationToken = default)

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

public static Task<IReadOnlyList<WwwAuthenticateParameters>> CreateFromAuthenticationResponseAsync(string resourceUri, CancellationToken cancellationToken = default)

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

public static Task<IReadOnlyList<WwwAuthenticateParameters>> CreateFromAuthenticationResponseAsync(string resourceUri, HttpClient httpClient, CancellationToken cancellationToken = default)

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

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

public static Task<WwwAuthenticateParameters> CreateFromResourceResponseAsync(string resourceUri, CancellationToken cancellationToken = default)

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

public static Task<WwwAuthenticateParameters> CreateFromResourceResponseAsync(HttpClient httpClient, string resourceUri, CancellationToken cancellationToken = default)

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

public static WwwAuthenticateParameters CreateFromResponseHeaders(HttpResponseHeaders httpResponseHeaders, string scheme = "Bearer")

Create WWW-Authenticate parameters from the HttpResponseHeaders.

public static WwwAuthenticateParameters CreateFromWwwAuthenticateHeaderValue(string wwwAuthenticateValue)

Creates parameters from the WWW-Authenticate string.

public static string GetClaimChallengeFromResponseHeaders(HttpResponseHeaders httpResponseHeaders, string scheme = "Bearer")

Gets the claim challenge from HTTP header. Used, for example, for Conditional Access (CA).

public string GetTenantId()

Gets Azure AD tenant ID.