Class FederationProviderConfig

Assembly: redb.Identity.Contracts.dll

Configuration for a single federated authentication provider (OIDC, etc.).

public class FederationProviderConfig

Inheritance

Object→FederationProviderConfig

Properties

Authority

OIDC issuer / authority URI. E.g. "https://accounts.google.com". Ignored for Kind=github.

public required 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 registered with the external IdP.

public required string ClientId { get; set; }

ClientSecret

OAuth2 client_secret registered with the external IdP.

public required string ClientSecret { get; set; }

DisplayName

Display name shown on the login page button. E.g. "Google", "Azure AD".

public required string DisplayName { get; set; }

Endpoints

Optional endpoint overrides for non-OIDC OAuth2 providers (e.g. GitHub Enterprise,

public OAuth2EndpointOverrides? Endpoints { get; set; }

Kind

H8: provider kind. "oidc" (default) uses

public string Kind { get; set; }

Priority

Display order on login page. Lower = shown first. Default: 100.

public int Priority { get; set; }

ProviderId

Provider ID used as dictionary key in ExternalIdentities. E.g. "google", "azure-ad".

public required string ProviderId { get; set; }

Scopes

Scopes to request. Default: openid, profile, email.

public string[] Scopes { get; set; }