Class OidcFederatedAuthProvider
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
Implements
Properties
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)