Class IdentityFeatureFlags
Cross-module feature toggles for the Identity product surface.
Lives in redb.Identity.Contracts so that both redb.Identity.Core
(which gates DI registration, OpenIddict configuration, and direct-vm://
route registration on these flags) and redb.Identity.Http (which gates
HTTP endpoint mounting on the same flags) read from a single shared contract.
Configuration source: a single section Identity:Features:* in
context.json. Both module binders (IdentityModuleConfigBinder and
IdentityHttpConfigBinder) bind their own IOptions<IdentityFeatureFlags>
instance from the same path, so a flag set once is observed identically by both
modules — eliminating the previous Core/Http duplication smell.
Architectural invariant: installed ⇔ exposed. If a feature is enabled the
Core registers everything required to serve it (DI services, direct-vm routes,
OpenIddict capabilities) AND the Http facade mounts the corresponding endpoints.
This avoids the broken state where Core ran without HTTP exposure (or vice versa)
because the two flag families had drifted.
public sealed class IdentityFeatureFlags
Inheritance
Properties
EnableDeviceCodeFlow
OAuth 2.0 Device Authorization Grant (RFC 8628). When true: Core configures
public bool EnableDeviceCodeFlow { get; set; }
EnableDynamicRegistration
OAuth 2.0 Dynamic Client Registration (RFC 7591) and management protocol (RFC 7592).
public bool EnableDynamicRegistration { get; set; }
EnableFederation
External federated identity providers (Google / Microsoft / Keycloak / GitHub etc).
public bool EnableFederation { get; set; }
EnableJar
JWT-Secured Authorization Request — JAR (RFC 9101). When true, /connect/authorize
public bool EnableJar { get; set; }
EnablePushedAuthorization
OAuth 2.0 Pushed Authorization Requests (RFC 9126). When true: Core enables
public bool EnablePushedAuthorization { get; set; }
EnableScim
SCIM 2.0 provisioning surface (RFC 7643/7644). When true:
public bool EnableScim { get; set; }
EnableScimBulk
SCIM /Bulk endpoint (RFC 7644 §3.7). Has no effect unless
public bool EnableScimBulk { get; set; }