Class FederationProviderProps

Assembly: redb.Identity.Core.dll

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

Object→FederationProviderProps

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; }

ClientId

OAuth2 client_id.

public string ClientId { get; set; }

DisplayName

Display name shown on the login page button.

public string DisplayName { 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; }

Kind

Discriminates wire protocol so the registry can pick the right

public string Kind { get; set; }

Priority

Display order on login page. Lower = shown first.

public int Priority { 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; }