Freigeben über


WwwAuthenticateParameters Class

Definition

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 class WwwAuthenticateParameters
type WwwAuthenticateParameters = class
Public Class WwwAuthenticateParameters
Inheritance
WwwAuthenticateParameters

Constructors

WwwAuthenticateParameters()

Properties

AuthenticationScheme

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

Authority

Authority from which to request an access token.

Claims

Claims demanded by the web API.

Error

Error.

Item[String]

Return the RawParameters of key key.

Nonce

The nonce acquired from the WWW-Authenticate header.

Resource
Obsolete.

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

Scopes
Obsolete.

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

Methods

CreateFromAuthenticationHeaders(HttpResponseHeaders, String)

Create WWW-Authenticate parameters from the HttpResponseHeaders.

CreateFromAuthenticationHeaders(HttpResponseHeaders)

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

CreateFromAuthenticationResponseAsync(String, CancellationToken)

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

CreateFromAuthenticationResponseAsync(String, HttpClient, CancellationToken)

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

CreateFromAuthenticationResponseAsync(String, String, CancellationToken)

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

CreateFromAuthenticationResponseAsync(String, String, HttpClient, CancellationToken)

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

CreateFromResourceResponseAsync(HttpClient, String, CancellationToken)
Obsolete.

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

CreateFromResourceResponseAsync(String, CancellationToken)
Obsolete.

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

CreateFromResourceResponseAsync(String)
Obsolete.

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

CreateFromResponseHeaders(HttpResponseHeaders, String)
Obsolete.

Create WWW-Authenticate parameters from the HttpResponseHeaders.

CreateFromWwwAuthenticateHeaderValue(String)
Obsolete.

Creates parameters from the WWW-Authenticate string.

GetClaimChallengeFromResponseHeaders(HttpResponseHeaders, String)

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

GetTenantId()

Gets Azure AD tenant ID.

Applies to