Skip to main content
Table of Contents

Class StrataraAuthSchemeSelectorOptions

Namespace
Stratara.Identity.AspNetCore.Authentication
Assembly
Stratara.Identity.AspNetCore.dll

Options for the Stratara auth-scheme selector — the policy scheme that routes each request to the matching authentication scheme by shape: API-key header present → API-key scheme; Authorization: Bearer → bearer scheme; everything else → the fallback (cookie) scheme.

[ExcludeFromCodeCoverage]
public sealed class StrataraAuthSchemeSelectorOptions
Inheritance
StrataraAuthSchemeSelectorOptions
Inherited Members
Extension Methods

Fields

SchemeName

The selector's own scheme name — StrataraAuthSelector.

public const string SchemeName = "StrataraAuthSelector"

Field Value

string

Properties

ApiKeyHeaderName

The header whose presence routes to the API-key scheme. Defaults to X-Api-Key.

public string ApiKeyHeaderName { get; set; }

Property Value

string

ApiKeyScheme

The scheme handling API-key requests. Defaults to SchemeName.

public string ApiKeyScheme { get; set; }

Property Value

string

BearerScheme

The scheme handling Authorization: Bearer requests. Defaults to ASP.NET Identity's bearer scheme.

public string BearerScheme { get; set; }

Property Value

string

FallbackScheme

The scheme handling every other request. Defaults to ASP.NET Identity's application cookie scheme.

public string FallbackScheme { get; set; }

Property Value

string