Class IdentitySharedOptions

Assembly: redb.Identity.Contracts.dll

Cross-module shared options for the Identity product surface.

Lives in redb.Identity.Contracts so that both
-aware
modules — redb.Identity.Core (which gates DI registration, OpenIddict
configuration, and direct-vm:// route registration on shared values)
and redb.Identity.Http (which formats discovery URIs, drives cookie
Secure detection, and gates HTTP endpoint mounting) — read from a
single shared contract.


Configuration source: a single section Identity:* in context.json.
Both module binders (IdentityModuleConfigBinder and
IdentityHttpConfigBinder) bind their own
IOptions<IdentitySharedOptions> from the same path, so a value
set once is observed identically by both modules — eliminating the
Core/Http duplication smell for both and
in one shared root.


Both RedbIdentityOptions.Shared (Core) and
IdentityTransportOptions.Shared (Http) reference an instance of this
type; in-process test fixtures that need exact alignment can simply assign
transportOptions.Shared = identityOptions.Shared instead of mirroring
individual properties one by one.

public sealed class IdentitySharedOptions

Inheritance

Object→IdentitySharedOptions

Properties

Features

Cross-module feature toggles. Single source of truth for both Core

public IdentityFeatureFlags Features { get; set; }

Issuer

Issuer URI for the identity server. Used by Core for OpenIddict

public Uri Issuer { get; set; }