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.
namespace Microsoft.Identity.Client
{
public class WwwAuthenticateParameters
{
public string Resource { get; set; }
public IEnumerable<string> Scopes { get; set; }
public string Authority { get; set; }
public string Claims { get; set; }
public string Error { get; set; }
public string AuthenticationScheme { get; }
public string Nonce { get; }
public string this[string key] { get; }
public string GetTenantId();
public static Task<WwwAuthenticateParameters> CreateFromResourceResponseAsync(string resourceUri);
public static Task<WwwAuthenticateParameters> CreateFromResourceResponseAsync(string resourceUri, CancellationToken cancellationToken = default(CancellationToken));
public static Task<WwwAuthenticateParameters> CreateFromResourceResponseAsync(HttpClient httpClient, string resourceUri, CancellationToken cancellationToken = default(CancellationToken));
public static WwwAuthenticateParameters CreateFromResponseHeaders(HttpResponseHeaders httpResponseHeaders, string scheme = "Bearer");
public static WwwAuthenticateParameters CreateFromWwwAuthenticateHeaderValue(string wwwAuthenticateValue);
public static Task<WwwAuthenticateParameters> CreateFromAuthenticationResponseAsync(string resourceUri, string scheme, CancellationToken cancellationToken = default(CancellationToken));
public static Task<WwwAuthenticateParameters> CreateFromAuthenticationResponseAsync(string resourceUri, string scheme, HttpClient httpClient, CancellationToken cancellationToken = default(CancellationToken));
public static WwwAuthenticateParameters CreateFromAuthenticationHeaders(HttpResponseHeaders httpResponseHeaders, string scheme);
public static Task<IReadOnlyList<WwwAuthenticateParameters>> CreateFromAuthenticationResponseAsync(string resourceUri, CancellationToken cancellationToken = default(CancellationToken));
public static Task<IReadOnlyList<WwwAuthenticateParameters>> CreateFromAuthenticationResponseAsync(string resourceUri, HttpClient httpClient, CancellationToken cancellationToken = default(CancellationToken));
public static IReadOnlyList<WwwAuthenticateParameters> CreateFromAuthenticationHeaders(HttpResponseHeaders httpResponseHeaders);
public static string GetClaimChallengeFromResponseHeaders(HttpResponseHeaders httpResponseHeaders, string scheme = "Bearer");
public WwwAuthenticateParameters();
}
}