Table of Contents

Class AuthorizationHeader

Namespace
Cuemon.AspNetCore.Authentication
Assembly
Cuemon.AspNetCore.Authentication.dll

Represents the base class from which all implementations of authorization header should derive.

public abstract class AuthorizationHeader
Inheritance
Object
AuthorizationHeader
Derived

Constructors

AuthorizationHeader(String)

Initializes a new instance of the AuthorizationHeader class.

protected AuthorizationHeader(string authenticationScheme)

Parameters

authenticationScheme String

The name of the authentication scheme.

Properties

AuthenticationScheme

Gets the name of the authentication scheme.

public string AuthenticationScheme { get; }

Property Value

String

The name of the authentication scheme.

Methods

Parse(String, Action<AuthorizationHeaderOptions>)

Parses the specified authorizationHeader.

public virtual AuthorizationHeader Parse(string authorizationHeader, Action<AuthorizationHeaderOptions> setup)

Parameters

authorizationHeader String

The authorization header to parse.

setup Action<AuthorizationHeaderOptions>

The AuthorizationHeaderOptions which need to be configured.

Returns

AuthorizationHeader

An AuthorizationHeader equivalent of authorizationHeader.

ParseCore(IReadOnlyDictionary<String, String>)

The core parser that resolves an AuthorizationHeader from a set of credentials.

protected abstract AuthorizationHeader ParseCore(IReadOnlyDictionary<string, string> credentials)

Parameters

credentials IReadOnlyDictionary<String, String>

The credentials used in authentication.

Returns

AuthorizationHeader

An AuthorizationHeader equivalent of credentials.

ToString()

Returns a System.String that represents this instance.

public abstract override string ToString()

Returns

String

A System.String that represents this instance.