Class OidcFederatedAuthProvider

Assembly: redb.Identity.Core.dll

Generic OIDC Relying Party — works with any IdP that exposes
.well-known/openid-configuration (Google, Azure AD, Keycloak, etc.).
Uses PKCE (S256), validates id_token signature + claims.

public sealed class OidcFederatedAuthProvider : IFederatedAuthProvider

Inheritance

Object→OidcFederatedAuthProvider

Implements

Properties

DisplayName

Display name for login page button.

public string DisplayName { get; }

Priority

Priority for ordering on the login page. Lower = shown first.

public int Priority { get; }

ProviderId

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

public string ProviderId { get; }

Methods

CreateChallengeAsync(string, string, CancellationToken)

Build authorization redirect URI with state, nonce, PKCE.

public Task<FederationChallenge> CreateChallengeAsync(string callbackUrl, string returnUrl, CancellationToken ct = default)

HandleCallbackAsync(string, string, string?, string?, CancellationToken)

Handle callback: exchange code → validate tokens → return identity.

public Task<ExternalAuthResult> HandleCallbackAsync(string code, string callbackUrl, string? codeVerifier = null, string? nonce = null, CancellationToken ct = default)

Constructors