AuthSchemes Class

Namespace
Kampute.HttpClient
Assembly
  • Kampute.HttpClient.dll

Definition

Provides the names of common HTTP authentication schemes, for use in the Authorization header.
public static class AuthSchemes
Inheritance

Examples

client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(AuthSchemes.Bearer, accessToken);

Fields

AWS4HMACSHA256

The AWS Signature Version 4 scheme, which Amazon Web Services uses to sign API requests.
public const string AWS4HMACSHA256 = "AWS4-HMAC-SHA256"

Field Value

string

ApiKey

A scheme name commonly used to send an API key in the Authorization header. It is not standardized, so check the name your API expects.
public const string ApiKey = "ApiKey"

Field Value

string

Basic

The Basic authentication scheme, defined in RFC 7617, which sends a user ID and password encoded in Base64.
public const string Basic = "Basic"

Field Value

string

Bearer

The Bearer authentication scheme, defined in RFC 6750, which sends an access token such as one issued by an OAuth 2.0 server.
public const string Bearer = "Bearer"

Field Value

string

Digest

The Digest authentication scheme, defined in RFC 7616, which sends a hash of the credentials instead of the password.
public const string Digest = "Digest"

Field Value

string

HOBA

The HTTP Origin-Bound Authentication (HOBA) scheme, defined in RFC 7486, which authenticates with a key pair bound to the origin.
public const string HOBA = "HOBA"

Field Value

string

Mutual

The Mutual authentication scheme, defined in RFC 8120, in which the client and the server authenticate each other.
public const string Mutual = "Mutual"

Field Value

string