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.Contracts Show all

redb.Identity.Contracts

Classes

C IdentityVerdict Reads the identity core's verdict out of an answer.

Enums

E IdentityVerdictKind What the identity core decided about a request, said once in a form no transport owns.

redb.Identity.Contracts.Applications

redb.Identity.Contracts.Audit

Classes

C AuditQueryItem A single audit row in .
C AuditQueryRequest H9 (v1.0 DoD): Audit log query request for GET /api/v1/identity/audit.
C AuditQueryResponse Paged result of .

redb.Identity.Contracts.ClaimDefinitions

Classes

C ClaimDefinitionResponse S2 — admin read DTO for a claim definition. See
C CreateClaimDefinitionRequest S2 — admin create DTO. The (ClaimName, Scope, ApplicationId) triplet is
C UpdateClaimDefinitionRequest S2 — admin update DTO. Null fields leave the existing stored value

redb.Identity.Contracts.ClaimMappers

Classes

C AssignClaimScopeRequest H5: Assign a Client Scope to an Application.
C ClaimMapperResponse
C ClaimScopeAssignmentResponse
C ClaimScopeDeletedResponse The answer of deleting a claim scope, with what the deletion removed along with it.
C ClaimScopeResponse
C CreateClaimMapperRequest H5: Create a new identity.claim_mapper PROPS row. Scope is determined by
C CreateClaimScopeRequest H5: Create a reusable Client Scope (named bundle of claim mappers).
C UpdateClaimMapperRequest H5: Update an existing claim mapper. Owner / scope is immutable post-creation.
C UpdateClaimScopeRequest

redb.Identity.Contracts.Common

Classes

C ErrorResponse The error document a management or account route answers with when it refuses a request:
C IdempotencyRecordPrunePreview The answer of the idempotency record cleanup asked as a dry run: how many expired records a run woul...
C IdempotencyRecordPruneResult The answer of the cleanup of expired idempotency records: {"prunedIdempotencyRecords":3}.
C ListRequest Pagination parameters for list operations.
C MfaOtpPruneResult The answer of the MFA one-time-code cleanup: {"prunedMfaOtp":3}.
C OneTimeSecretAttribute Marks a result member that carries a value the caller is shown once: a generated secret, a bearer to...
C PagedResult<T> Paginated result wrapper.
C RevokedSidsPruneResult The answer of the revoked session id (sid) cleanup: {"prunedRevokedSids":3}.
C SecretWithheldReplayResponse The answer to a repeated request with an Idempotency-Key whose first answer carried a one-time
C SuccessResponse The answer of a management operation that has nothing to return but its outcome, such as a deletion:
C WebAuthnChallengePruneResult The answer of the cleanup of consumed WebAuthn challenges: {"prunedWebAuthnChallenges":3}.

redb.Identity.Contracts.Configuration

Classes

C FederationProviderConfig Configuration for a single federated authentication provider (OIDC, etc.).
C IdentityCookieOptions C9 — cookie security defaults shared by every cookie Identity emits.
C IdentityFeatureFlags Cross-module feature toggles for the Identity product surface.
C IdentityScopes Central registry of OAuth scopes recognised by the management API.
C IdentitySharedOptions Cross-module shared options for the Identity product surface.
C OAuth2EndpointOverrides Per-provider override of the well-known OAuth2 endpoints used by

Enums

E CookieSameSiteMode SameSite cookie modes per RFC 6265bis. None requires Secure.

redb.Identity.Contracts.Consents

Classes

C ConsentRequiredResponse Machine-readable counterpart of the consent_required 302 redirect from
C ConsentResponse Consent grant record returned by the management API.
C GrantMyConsentRequest Self-service consent grant request for POST /me/consents. The caller's
C MeRevokeConsentRequest Self-service consent revoke request for DELETE /me/consents/{clientId}.
C MyConsentGrantedResponse The answer of granting a consent through the self-service API.
C MyConsentRevokedResponse The answer of revoking a consent through the self-service API: {"revoked":1}.

redb.Identity.Contracts.Cors

Classes

C CorsCheckRequest Phase 9d cross-context request DTO for direct-vm://identity-cors-check.
C CorsCheckResponse Reply DTO for direct-vm://identity-cors-check.

Interfaces

I IRegisteredClientOriginRegistry In-memory registry of allowed CORS origins derived from registered OAuth clients'

redb.Identity.Contracts.Endpoints

Classes

C BootstrapAdminRequest B1 — request DTO for POST /internal/bootstrap-admin
C BootstrapAdminResponse B1 — reply DTO for POST /internal/bootstrap-admin.
C ValidatePostLogoutRedirectRequest Phase 9d cross-context request DTO for direct-vm://identity-validate-post-logout.
C ValidatePostLogoutRedirectResponse Reply DTO for direct-vm://identity-validate-post-logout.

redb.Identity.Contracts.Events

Classes

C IdentityEvent Base identity event — all events carry these fields.

redb.Identity.Contracts.Federation

Classes

C CreateFederationProviderRequest
C FederatedIdentityResponse H8 (DoD §4 gap (b)): one entry returned by GET /me/federated-identities.
C FederatedIdentityUnlinkedResponse The answer of unlinking an external identity from the caller's account.
C FederationProviderResponse H8 (DoD §4 gap (e)): admin-API DTO for an PROPS-stored federation provider config.
C LinkFederatedIdentityChallengeResponse H8: response from POST /me/federated-identities/link-challenge.
C LinkFederatedIdentityRequest H8 (DoD §4 gap (b)): self-service request to start a "link this provider to my
C PublicFederationProviderDescriptor Public projection of a federation provider safe for unauthenticated callers (login
C UpdateFederationProviderRequest

redb.Identity.Contracts.Groups

Classes

C AddMemberRequest
C CreateGroupRequest
C GroupChangedResponse The answer of a group update or deletion: {"success":true,"groupId":42}.
C GroupMemberAddedResponse The answer of adding a user to a group, with the id of the new membership.
C GroupMemberChangedResponse The answer of changing a member's role in a group.
C GroupMemberRemovedResponse The answer of removing a user from a group.
C GroupMembershipCheckResponse The answer of GET groups/{id}/members/{userId}/check.
C GroupMovedResponse The answer of moving a group under another parent.
C GroupResponse A group as the management API answers it. The members are declared in the order they are written.
C GroupTreeNodeResponse A group with its subtree: the answer of GET groups/{id}/tree.
C MemberResponse
C MoveGroupRequest
C UpdateGroupRequest
C UpdateMemberRequest

redb.Identity.Contracts.Mfa

Classes

C MfaConfirmedResponse The answer of confirming an MFA enrollment: the recovery codes, shown this once.
C MfaDisabledResponse The answer of disabling an MFA method.
C MfaMethodsFromStateRequest Phase 9d cross-context request DTO for direct-vm://identity-mfa-methods-from-state.
C MfaMethodsFromStateResponse Reply DTO for direct-vm://identity-mfa-methods-from-state.
C MfaRecoveryCodesResponse The answer of regenerating the recovery codes: the new codes, shown this once.
C MfaSetupResponse The answer of starting an MFA enrollment. It carries what the user needs to finish it, shown this on...
C MfaStatusResponse The MFA state of a user, answered by the management MFA status operation.
C WebAuthnCredentialList The caller's registered WebAuthn credentials.
C WebAuthnCredentialResponse One registered WebAuthn credential.
C WebAuthnDeletedResponse A deleted WebAuthn credential.
C WebAuthnRegisteredResponse A completed WebAuthn registration.
C WebAuthnRegistrationOptionsResponse The start of a WebAuthn registration: the creation options for the browser and the setup token.
C WebAuthnRenamedResponse A renamed WebAuthn credential.
C WebAuthnStatusResponse The WebAuthn state of the caller, answered by the self-service WebAuthn status operation.

Interfaces

I IMfaStateInspector Minimal read-only surface over the encrypted MFA challenge state for transport facades

redb.Identity.Contracts.Module

Classes

C InitRoute Deliberately empty Tsak module. This package exists for its companion, not its code:

redb.Identity.Contracts.Registration

Classes

C DynamicRegistrationRequest RFC 7591 §2 Client Metadata for Dynamic Client Registration.
C DynamicRegistrationResponse RFC 7591 §3.2.1 Client Information Response for Dynamic Client Registration.

redb.Identity.Contracts.Roles

Classes

C CreateRoleRequest
C RoleAssignmentResponse B.3 — a single assignment row, surfaces both directions:
C RoleResponse
C RoleScopeResponse One attached scope on a role's permission tab.
C UpdateRoleRequest Null fields preserve the existing value (PATCH semantics). Name +

redb.Identity.Contracts.Routes

Classes

C IdentityAuditCategories Category constants stored in the identity_audit_log.category column.
C IdentityAuditEventIds H9 (v1.0 DoD): Centralized audit event catalog.
C IdentityEndpoints All direct-vm:// endpoint URIs and RouteIds for the Identity Server.
C IdentityReservedInboundHeaders Exchange header names that carry internal, server-derived state and must never arrive from a

redb.Identity.Contracts.Routes.IdentityEndpoints

redb.Identity.Contracts.Scim

Classes

C ScimAddress SCIM Address (RFC 7643 §4.1.2).
C ScimAuthenticationScheme
C ScimBulkConfig
C ScimBulkOperation Single bulk operation (RFC 7644 §3.7).
C ScimBulkOperationResponse Single bulk operation result (RFC 7644 §3.7).
C ScimBulkRequest SCIM 2.0 Bulk request (RFC 7644 §3.7).
C ScimBulkResponse SCIM 2.0 Bulk response (RFC 7644 §3.7).
C ScimConstants SCIM 2.0 constants (RFC 7643/7644).
C ScimEnterpriseUser SCIM 2.0 Enterprise User extension (RFC 7643 §4.3).
C ScimError SCIM 2.0 error response (RFC 7644 §3.12).
C ScimFilterConfig
C ScimGroup SCIM 2.0 Group resource (RFC 7643 §4.2).
C ScimGroupRef Group reference (read-only on User) per RFC 7643 §4.1.2.
C ScimListResponse<T> SCIM 2.0 ListResponse (RFC 7644 §3.4.2).
C ScimManager The manager complex attribute of the Enterprise User extension (RFC 7643 §4.3).
C ScimMemberRef Member reference (for groups) per RFC 7643 §4.2.
C ScimMeta SCIM 2.0 resource metadata (RFC 7643 §3.1).
C ScimMultiValuedAttribute Multi-valued attribute entry (emails, phoneNumbers, etc.) per RFC 7643 §2.4.
C ScimName SCIM Name component (RFC 7643 §4.1.1).
C ScimPatchOperation Single PATCH operation (RFC 7644 §3.5.2).
C ScimPatchRequest SCIM 2.0 PATCH request (RFC 7644 §3.5.2).
C ScimResourceType SCIM 2.0 ResourceType (RFC 7643 §6).
C ScimSchema SCIM 2.0 Schema resource (RFC 7643 §7).
C ScimSchemaAttribute SCIM Schema attribute definition (RFC 7643 §7).
C ScimSchemaDefinitions Provides static SCIM 2.0 schema definitions for User and Group (RFC 7643 §7).
C ScimSchemaExtension A schema extension declared on a ResourceType (RFC 7643 §6). required says whether the
C ScimServiceProviderConfig SCIM 2.0 ServiceProviderConfig resource (RFC 7643 §5).
C ScimSupported
C ScimUser SCIM 2.0 User resource (RFC 7643 §4.1).

redb.Identity.Contracts.Scopes

redb.Identity.Contracts.Serialization

Classes

C IdentityWireProfiles Locked wire-format JSON profiles for redb.Identity transports

redb.Identity.Contracts.Sessions

Classes

C RevokedSidEntry One entry in the revoked-sids list returned to a polling Relying Party (RP).
C RevokedSidsAddRequest Request body for POST /api/internal/revoked-sids.
C RevokedSidsSinceResponse Response of GET /api/internal/revoked-sids/since?cursor=....
C SessionPage A page of the active sessions of all users, answered by the admin-wide session list.
C SessionPruneResult The answer of the session cleanup: {"prunedSessions":4,"expiredActiveSessions":1}.
C SessionResponse Session record returned by the management API.
C SessionRevokePreview The answer of revoking all sessions of a user with dryRun: how many would be revoked and the ids of ...

redb.Identity.Contracts.SigningKeys

Classes

C RotateSigningKeyRequest Request shape for POST /signing-keys/rotate.
C SigningKeyListResponse Response shape for GET /signing-keys.
C SigningKeyResponse One row of the signing-key store as exposed by the admin /signing-keys list endpoint.
C SigningKeyRetiredResponse The answer of retiring a signing key: {"success":true,"kid":"..."}.

redb.Identity.Contracts.Tokens

Classes

C IntrospectionResponse
C RevokedCountResponse The answer of revoking all tokens of a subject: {"revokedCount":3}.
C TokenInfoResponse Administrative token info (for management endpoint, not OAuth flow).
C TokenPrunePreview The answer of a token prune asked as a dry run: what a prune would remove now, with nothing removed.
C TokenPruneResult The answer of a token prune: {"prunedTokens":12,"prunedAuthorizations":3}. Tokens past the retention
C TokenRequest
C TokenResponse

redb.Identity.Contracts.Users

Classes

C AddressDto OIDC structured address claim (§5.1.1).
C AdminResetPasswordRequest Admin-side password reset for a user, bypassing the "old password" challenge
C ChangeEmailConfirmRequest N-4 (Session E, sub-step N4-7): request body for
C ChangeEmailConfirmResponse N-4 (Session E, sub-step N4-7): response for the confirm endpoint.
C ChangeEmailRequestRequest N-4 (Session E, sub-step N4-7): request body for
C ChangeEmailRequestResponse N-4 (Session E, sub-step N4-7): response for the request endpoint. Always
C ChangePasswordRequest
C CreateUserRequest
C EmailVerifyConfirmRequest N-4 (Session C, sub-step N4-6): request body for
C EmailVerifyConfirmResponse N-4 (Session C, sub-step N4-6): response for the confirm endpoint.
C EmailVerifySendRequest N-4 (Session C, sub-step N4-6): request body for
C EmailVerifySendResponse N-4 (Session C, sub-step N4-6): generic response for the send endpoint. Always
C ExternalIdentityDto DTO representing a federation identity link to an external provider.
C ImpersonationStartedResponse The answer of starting an impersonation: the user the administrator now acts as.
C ImpersonationStoppedResponse The answer of stopping an impersonation: {"stopped":true}.
C MeChangePasswordRequest Self-service password change request for PUT /me/password.
C MeUpdateProfileRequest Self-service profile update request for PUT /me. Caller identity is derived
C PasswordForgotRequest N-4 (Session C): request body for direct-vm://identity-password-forgot
C PasswordForgotResponse N-4 (Session C): generic response for the forgot endpoint. Always
C PasswordResetRequest N-4 (Session C): request body for direct-vm://identity-password-reset
C PasswordResetResponse N-4 (Session C): response for the reset endpoint. On success, is
C RegisterAccountRequest N-3 (sub-step N3-6/N3-7): request body for self-service account registration
C RegisterAccountResponse N-3: response for . The processor returns
C UpdateUserRequest
C UserResponse

redb.Identity.Contracts.Validation

Classes

C RequestValidator Centralised DataAnnotations-driven request DTO validation.
C ScimRequestValidator SCIM 2.0 request DTO validation. Returns a populated
C ValidationErrorResponse The refusal of a request that fails its declared validation rules: the first rule broken as the

redb.Identity.Contracts.Webhooks

Classes

C CreateWebhookSubscriptionRequest
C UpdateWebhookSubscriptionRequest Null fields preserve existing values (PATCH semantics). HMAC secret is
C WebhookDeliveryItem One row of the delivery outbox.
C WebhookDeliveryPage A page of the delivery outbox (webhooks and audit targets), newest first, without payloads.
C WebhookSecretRotatedResponse The answer of rotating a webhook secret when the subscription could not be read back right after the
C WebhookSubscriptionResponse