Class FederationProviderProps
H8 (v1.0 DoD §4 gap (e)): PROPS-stored configuration for a single federated authentication
provider. Mirrors redb.Identity.Core.Configuration.FederationProviderConfig
loaded from appsettings.json, but allows runtime CRUD via the admin API
(/api/v1/identity/federation-providers).
Storage:
— lowercase, unique per scheme via [RedbUnique]
(V4-UNIQUE). Historical note: the doc used to claim a partial unique index on
value_string that no code ever created — duplicates were possible until F2;
value_string is a transition mirror now.ClientSecret is stored encrypted via DataProtection
(identity.federation-provider-secret purpose) — admin API never returns the
plaintext, only metadata (`HasSecret: bool`).
[RedbScheme("identity.federation_provider")]
public class FederationProviderProps
Inheritance
Properties
Authority
OIDC issuer / authority URI. Required for Kind=oidc; used as
public string? Authority { get; set; }
AutoProvision
Create a local user on first federated login. Default: true.
public bool AutoProvision { get; set; }
ClaimMappings
Optional claim mappings: external claim type → internal claim type.
public Dictionary<string, string>? ClaimMappings { get; set; }
Enabled
Whether this provider is available for end-user login. Allows soft-disable
public bool Enabled { get; set; }
EncryptedClientSecret
OAuth2 client_secret, ALWAYS encrypted at rest via
public string? EncryptedClientSecret { get; set; }
ProviderId
Provider id (slug), e.g. google — lowercase (the processor normalises),
public string ProviderId { get; set; }
Scopes
Scopes requested at challenge time. Default: ["openid","profile","email"]
public string[] Scopes { get; set; }