HttpAuthenticationScheme Enum

System.Net.Security

Specifies the HTTP authentication schemes that can be used to authenticate clients with a server.

Syntax

public enum HttpAuthenticationScheme

Remarks

This enumeration is used by the HttpClient.DefaultRequestHeaders.Common.Authorization.Scheme property to specify the authentication scheme.

When you are using HTTP authentication, the server requests authentication from the client by sending an HTTP response with a 401 Unauthorized status code and a WWW-Authenticate header. The WWW-Authenticate header specifies the authentication schemes that the server supports.

The client can then respond with a GET or POST request that includes an Authorization header containing credentials that are appropriate for one of the authentication schemes supported by the server.

Members

Requirements

Package Assembly
.NET Core 2.0, .NET Framework 4.5 System.Net.Primitives.dll, System.dll

See Also