RedBase Documentation

Welcome to the RedBase documentation portal. Browse the API reference, explore code examples, and learn how to build with REDB.

API Reference

Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.

Showing: redb.Identity.Core Show all

redb.Identity.Core

redb.Identity.Core.ChangeEmail

Classes

C RedbChangeEmailTokenStore N-4 (Session E, sub-step N4-7): redb-backed

Interfaces

I IChangeEmailTokenStore N-4 (Session E, sub-step N4-7): server-side store for single-use

Structs

S ChangeEmailIssueResult Result of .
S ChangeEmailVerifyResult Result of .

redb.Identity.Core.Configuration

Classes

C AdminScopeEntitlementOptions Role-driven entitlement for administrative scopes.
C Argon2idHashOptions Argon2id parameters. Defaults match OWASP 2023 guidance for password storage:
C AuditTarget A single audit target — any redb.Route producer URI (sql:, kafka:, es:, rabbitmq:, log:, etc.).
C BackchannelLogoutOptions Which addresses a client's backchannel_logout_uri (OIDC Back-Channel Logout 1.0) may point at. The s...
C BcryptHashOptions BCrypt parameters. Defaults match current redb.Core.Security.BcryptPasswordHasher.
C BootstrapOptions B1 — emergency local-admin bootstrap: a one-shot internal endpoint
C ChangeEmailOptions N-4 (Session E, sub-step N4-7): tunables for the verify-then-commit change-of-e-mail
C ClientKeysOptions Governs how the server fetches a client's JWKS from its jwks_uri
C DataProtectionCertificateOptions X.509 certificate selector for the DataProtection key-ring encryptor.
C DataProtectionOptions C10 — DataProtection at-rest hardening.
C DeliveryOptions Delivery of events to webhook subscribers and to the external audit targets through the outbox table
C DpopOptions Z4 (RFC 9449): Demonstrating Proof-of-Possession at the Application Layer.
C DpopReplayStoreOptions Replay-store configuration for DPoP proof jti de-duplication.
C EmailVerificationOptions N-4 (Session C, sub-step N4-6): tunables for the e-mail-verification flow
C FederationStateOptions C6 — hardening for the encrypted federation state blob and the
C IdempotencyOptions E2 — RFC-style Idempotency-Key support for admin/SCIM mutation endpoints.
C IdentityAuditOptions Configuration for the identity audit subsystem.
C IdentityValidationOptions Server-side input-length limits used by Identity validation helpers.
C IdentityWebAuthnOptions MFA-3 (WebAuthn / FIDO2 / Passkeys): Relying-Party configuration.
C JarOptions JAR (RFC 9101) — JWT-Secured Authorization Request. Applies only when
C PasswordHashingOptions C12 — password hashing configuration.
C PasswordPolicyOptions H10 — server-side password policy applied by management, self-service and SCIM
C PasswordRecoveryOptions N-4 (Session C): tunables for the password-recovery flow
C RateLimitOptions C1 — Configuration for per-IP / per-(IP+username) rate limiting that sits in front of
C RedbIdentityOptions Configuration options for redb.Identity.
C RegistrationOptions N-3 (sub-step N3-7): tunables + feature gate for the self-service account
C ReverseProxyOptions C2 — Configuration for the trusted-reverse-proxy whitelist consulted by
C SeedAdminOptions Options for the default-admin password seeder that ensures the well-known
C SeedBackchannelClientOptions Options for the W6-0 backchannel service-account seeder. Ensures a confidential
C SeedWebClientOptions Options for the default OIDC-client seeder that ensures the canonical
C SmtpOptions N-4 (Session C): SMTP transport configuration consumed by the e-mail dispatch route

Enums

E JarEnforcementMode How strictly a client's declared request_object_signing_alg is enforced once
E MintingKeySource Which key source signs and encrypts new tokens when both configured credentials
E PasswordHashAlgorithm Enumeration of supported primary password-hashing algorithms.

redb.Identity.Core.EmailVerification

Classes

C RedbEmailVerificationTokenStore N-4 (Session C, sub-step N4-6): redb-backed

Interfaces

I IEmailVerificationTokenStore N-4 (Session C, sub-step N4-6): server-side e-mail-verification token store. Mirror of

redb.Identity.Core.Events

Classes

C DeliveryBacklog The backlog of the delivery outbox (pending rows, age of the oldest), read from the database at most
C IdentityEventStore The flat SQL of the event pipeline: the audit row and the delivery outbox
C OutboxDelivery One outbox row as the management API shows it. The payload is not part of it.
C OutboxEntry One outbox row to write.
C OutboxRow One due outbox row, as the worker reads it.
C OutboxStats The backlog of the outbox.
C WebhookSubscriptionCache The enabled webhook subscriptions, kept in memory for Delivery.SubscriptionCache. Every event

redb.Identity.Core.Exceptions

Classes

C MfaDeliveryException Thrown by implementations when OTP delivery fails.
C WebAuthnException MFA-3: thrown by when a WebAuthn ceremony fails

redb.Identity.Core.Health

Classes

C IdentityHealthContributor Per-module health probe for redb.Identity. Surfaces the module under

redb.Identity.Core.Hosting

Classes

C IdentitySchemaRegistry Authoritative list of all PROPS schemas managed by redb.Identity.

redb.Identity.Core.Keys

Classes

C PropsSigningKeyStore PROPS-backed implementation of . Singleton; resolves
C SigningKeyMaterial In-memory representation of a signing / encryption key loaded from PROPS storage

Interfaces

I ISigningKeyStore Persistent store for OpenIddict signing / encryption keys backed by redb PROPS

redb.Identity.Core.Metrics

Classes

C IdentityMetrics F3: OpenTelemetry-compatible -based metrics for Identity. Exposed as a

redb.Identity.Core.Mfa

Classes

C PropsServerSideOtpStore B3: PROPS-backed . Singleton; resolves
C PropsWebAuthnChallengeStore MFA-3: PROPS-backed mirroring

Interfaces

I IServerSideOtpStore B3: server-side OTP store — issues and consumes SMS/Email one-time codes so that the
I IWebAuthnChallengeStore MFA-3: server-side single-use marker for consumed WebAuthn challenges.

Structs

S OtpIssueResult Result of .
S OtpVerifyResult Result of .

Enums

E WebAuthnConsumeResult Result of .

redb.Identity.Core.Models

Classes

C AddressClaim OIDC structured address claim (§5.1.1).
C ApplicationProps PROPS Props for OAuth 2.0 / OpenID Connect client application.
C AuthorizationProps PROPS Props for OAuth 2.0 authorization (grant / consent record).
C ChangeEmailTokenProps N-4 (Session E, sub-step N4-7): server-side material backing a single-use
C ClaimDefinitionProps S2 — declarative claim schema. Defines a custom claim that may appear
C ClaimMapperProps H5 (v1.0 DoD §5): PROPS Props for a declarative claim-mapping rule emitted into OAuth/OIDC tokens.
C ClaimScopeAssignmentProps H5 (v1.0 DoD §5): Many-to-many link between an Application and a .
C ClaimScopeProps H5 (v1.0 DoD §5): Reusable named bundle of rules.
C DpopConsumedJtiProps Z4 (RFC 9449 §11.1): persisted marker for a consumed DPoP proof jti.
C EmailVerificationTokenProps N-4 (Session C, sub-step N4-6): server-side material backing a single-use
C ExternalIdentity Federation identity linking a local user to an external provider (OIDC, LDAP, SAML).
C FederatedIdentityProps H8 (v1.0 DoD §4): one federated identity link between a local user and an external IdP.
C FederationProviderProps H8 (v1.0 DoD §4 gap (e)): PROPS-stored configuration for a single federated authentication
C GroupMemberProps Flat membership link: key = userId, parent_id = groupId.
C GroupProps PROPS entity for organizational groups with tree hierarchy.
C GroupRoleAssignmentProps B.3 — group → role assignment. Every member of the group inherits the
C IdempotencyRecordProps E2 — PROPS record for cached responses of Idempotency-Key-bearing requests.
C IdentitySystemFlagProps B1 — System-wide one-shot flag stored as a bare RedbObject<IdentitySystemFlagProps>
C MfaArchivedRecoveryCodeBatch A snapshot of recovery-code hashes that were active before being retired
C MfaChallengeResult Result of .
C MfaOtpProps B3: server-side OTP material for SMS / Email MFA methods.
C MfaProps PROPS entity storing MFA configuration and secrets for a user.
C MfaSetupResult Result of Services.IMfaMethod.SetupAsync: contains data the user needs
C MfaSetupTokenPayload Encrypted payload of an MFA setup token (B5). Bound to a single user + setup attempt
C MfaState Temporary state between password verification and MFA code entry.
C MfaStatusResult MFA status for a user, returned by management API.
C PasswordHistoryProps H10 — per-user password history entry. Stores a verifier-hash (Argon2id by default,
C PasswordResetTokenProps N-4 (Session C): server-side material backing a single-use password-reset token.
C RevokedSidProps W6-0: One revocation entry in the backchannel revoked-sids list.
C RoleProps B.3 — first-class role entity. Roles exist independently of groups and
C RoleScopeAssignmentProps B.3 (permission picker) — role → OAuth scope binding. One row per
C ScopeProps PROPS Props for OAuth 2.0 scope definition.
C SessionProps PROPS entity tracking user login sessions.
C SigningKeyProps PROPS Props for persistent OpenIddict signing / encryption keys (A3).
C TokenProps PROPS Props for OAuth 2.0 / OIDC token (access, refresh, id, authorization_code).
C UserProps OIDC profile extension for a user stored in _users.
C UserRoleAssignmentProps B.3 — direct user → role assignment. One row per (user, role) pair.
C WebAuthnConsumedChallengeProps MFA-3: server-side single-use marker for consumed WebAuthn challenges.
C WebAuthnCredential WebAuthn (FIDO2) credential descriptor stored per user in .
C WebhookSubscriptionProps W1 — outbound webhook subscription. One row per HTTP endpoint that

redb.Identity.Core.Module

Classes

C IdentityRouteContextExtensions Bridges Identity-owned services (OpenIddict managers, deletion service, options snapshot, …)
C InitRoute Tsak module entry point for redb.Identity.Core.Module.
C RedbIdentityHost redb.Identity running in a host of its own: one route context with the Identity core module and the
C RedbIdentityHostServiceCollectionExtensions Registration for a process that runs redb.Identity in a host of its own, without a Tsak worker.

redb.Identity.Core.OpenIddict

Classes

C OidcClaimsRequest The parsed OIDC claims request parameter (OpenID Connect Core 1.0 §5.5) — the RP's
C OidcClaimsRequestEntry A single entry of the OIDC claims request parameter (OpenID Connect Core 1.0 §5.5.1):
C RedbRouteOpenIddictServerBuilder Exposes the configuration methods for the redb.Route OpenIddict Server host adapter.
C RedbRouteOpenIddictServerBuilderExtensions Extension methods for configuring the redb.Route OpenIddict Server host adapter.
C RedbRouteOpenIddictServerHandler Transport-agnostic entry point for processing OAuth/OIDC requests
C RedbRouteOpenIddictServerOptions Configuration options for the redb.Route OpenIddict Server host adapter.

redb.Identity.Core.PasswordReset

Classes

C RedbPasswordResetTokenStore N-4 (Session C): redb-backed . Singleton; resolves

Interfaces

I IPasswordResetTokenStore N-4 (Session C): server-side password-reset token store — issues and atomically consumes

Structs

S PasswordResetIssueResult Result of .
S PasswordResetVerifyResult Result of .

redb.Identity.Core.Routes

Classes

C IdentityCoreRouteBuilder Core route builder for the redb Identity Server.

redb.Identity.Core.Security

Classes

C Argon2idPasswordHasher C12: Argon2id password hasher — OWASP 2023+ recommended primary algorithm.
C DefaultPasswordPolicyValidator H10 — default implementation backed by
C IdentitySecurityLog E5 — security-event logging channel. All audit/security-sensitive events
C MultiFormatPasswordHasher C12: dispatching password hasher that produces new hashes with the configured primary
C PasswordValidationResult Aggregated outcome of a password policy check. is true
C PropsPasswordHistoryStore H10 Phase 2 — PROPS-backed that mirrors the
C RegisteredClientOriginRegistry Default implementation backed by

Interfaces

I IBreachedPasswordChecker Phase 5 — pluggable breached-password checker (e.g. HIBP k-anonymity, local
I IPasswordHistoryStore Phase 2 — pluggable per-user password-history store. Implemented in a follow-up
I IPasswordPolicyValidator H10 — central server-side gate for every password mutation (admin Create/Change,

redb.Identity.Core.Serialization

Classes

C IdentityCodecProfiles Route-framework-bound view over the locked Identity wire profiles defined in

redb.Identity.Core.Services

Classes

C BackchannelLogoutDispatcher Sends OIDC Back-Channel Logout 1.0 notifications to relying parties after a successful
C CapturedEmail Snapshot of a single e-mail captured by .
C ClaimMappersResolver H5 (v1.0 DoD §5): Resolves declarative rules and applies
C ClaimSchemaValidator S2 — shared validator for global .
C ConsentService Manages explicit user consent grants. Consent is stored as an OpenIddict Authorization
C DpopProofValidator Z4 (RFC 9449): validates a DPoP proof JWT and reserves its jti
C ExternalAuthResult Result of an external authentication attempt.
C FederatedIdentityLink H8: read-model record for a single federated identity link, returned to callers of
C FederationChallenge Result of :
C FederationProviderSecretProtector H8 (DoD §4 gap (e)): encrypts/decrypts federation provider client secrets at rest
C FederationState Data encrypted in the federation state parameter.
C FederationStateProtector Encrypts/decrypts federation state parameters using ASP.NET DataProtection.
C GitHubFederatedAuthProvider H8 (DoD §4 gap (a) "GitHub-style"): GitHub OAuth2 federated auth provider.
C GroupClaimsResolver Enriches a with group/role claims
C GroupNames The unique key of a group name. A group name is unique across the whole group tree, compared
C GroupService Manages hierarchical groups (tree via parent_id) and flat memberships (GroupMemberProps).
C HmacDpopNonceProvider Stateless HMAC-SHA256 nonce provider. Each nonce encodes a Unix-second timestamp and
C IdentityEmailTemplates N-4 (Session C): stable template identifiers consumed by
C IdentityPrincipalBuilder Builds a for an authenticated user.
C InlineEmailTemplateRegistry N-4 (Session C): default shipping inline
C InMemoryEmailNotificationChannel N-4 (Session C): test / preview implementation of
C InMemoryFederationStateNonceStore Single-process implementation of .
C LoginResult Result of a login attempt.
C LoginService Verifies user credentials via external providers (if any) then falls back
C LogoutConfirmationProtector The proof that the End-User, not a page they happened to visit, asked to sign out.
C LogoutTokenBuilder Builds OIDC Back-Channel Logout 1.0 logout_token JWTs (RFC: OIDC Back-Channel
C MemoryDpopReplayStore In-process implementation of . Backed by a
C MfaSecretProtector Encrypts/decrypts TOTP secrets at rest using ASP.NET DataProtection.
C MfaService Orchestrates MFA operations: delegates to implementations,
C MfaSetupInitiation Pure setup data returned by .
C MfaSetupTokenProtector Encrypts/decrypts an MFA setup token (B5). The setup token carries the candidate
C MfaStateProtector Encrypts/decrypts temporary MFA state using ASP.NET DataProtection with TTL enforcement.
C OidcFederatedAuthProvider Generic OIDC Relying Party — works with any IdP that exposes
C RecoveryCodePepperProvider Provides the server-wide pepper applied during MFA recovery-code hashing
C RedbDpopReplayStore PROPS-backed mirroring
C RenderedEmailTemplate N-4 (Session C): rendered e-mail payload returned by an
C RoleService B.3 — backing implementation for the Roles registry. All shapes go
C SeedAdminPasswordHostedService Startup seeder that ensures the well-known admin user from the base
C SeedBackchannelClientHostedService W6-0 — sister of . Ensures the
C SeedWebClientHostedService Startup seeder that ensures the canonical Web Console OIDC client (default
C SessionService Manages user login sessions. Sessions track when a user logged into an application.
C SmtpEmailNotificationChannel N-4 (Session C): production backed by the
C WebAuthnCredentialSummary MFA-3: client-facing summary of a registered WebAuthn credential.
C WebhookSubscriptionService W1 — backing store for outbound webhook subscriptions. CRUD + filter

Interfaces

I IClientKeyResolver Resolves the public signing keys of a client application — the keys used to verify
I IDpopNonceProvider Z4 P2 (RFC 9449 §8): provider of server-issued DPoP nonces. Implementations may be
I IDpopReplayStore Z4 (RFC 9449 §11.1): DPoP proof jti replay-prevention store.
I IEmailNotificationChannel N-4 (Session C): SPI for delivering identity-system transactional e-mails
I IEmailTemplateRegistry N-4 (Session C): renders identity-system e-mail templates by
I IExternalUserProvider SPI for pluggable external authentication providers (LDAP, SAML, OIDC federation, etc.).
I IFederatedAuthProvider SPI for redirect-based federated authentication (OIDC, SAML, etc.).
I IFederationStateNonceStore One-time-use nonce store for federation state blobs (C6).
I IGroupService Groups/RBAC service — manages hierarchical groups and flat memberships.
I IMfaDeliveryChannel SPI for delivering MFA codes via external channels (SMS, Email).
I IMfaMethod SPI for MFA verification methods (TOTP, SMS, WebAuthn, etc.).
I IRateLimitStore C1 — Sliding-window counter store used by the rate-limit processors. Implementations
I IUserProfileService Unified user profile and claims service.
I IWebAuthnMfaMethod MFA-3: typed SPI for the WebAuthn (FIDO2 / Passkey) flow. Standalone — does NOT

Structs

S DpopValidationResult Result of a DPoP proof validation.
S RateLimitDecision C1 — Outcome of a rate-limit check / increment.

Enums

E FederationStateValidationFailure Result of validating a federation state blob. Distinguishes the failure mode so

redb.Identity.Core.Services.ConsentService

redb.Identity.Core.Services.IGroupService

redb.Identity.Core.Services.SessionService

Classes

C SessionService.SessionInfo Session info DTO for API responses.