- Phase 25.4: N shortcut for new exploration on dashboard (react-hotkeys-hook) - Phase 25.5: overflow-x-auto on tables, responsive padding (p-4 md:p-6) - Phase 26: SAML/OIDC/LDAP providers (build-fixed), TOTP/MFA service - Phase 26: KyselySSOConfigRepository + KyselyTOTPRepository - Phase 26: SSO HTTP controller (config CRUD + MFA setup/verify/disable) - Phase 26: Audit module index.ts + SSO module index.ts - Phase 26: Session management endpoints (findByUserId, deleteById, list/revoke) - Phase 26: SSO and audit routes feature-gated (auth:sso, audit:logs) - Phase 26: Frontend SSOSection (SAML/OIDC/LDAP config + TOTP setup) - Phase 26: Frontend SessionsSection (list/revoke active sessions) - Phase 26: Settings navigation updated with SSO & Sessions sections Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
751 B
JavaScript
20 lines
751 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.TOTPSecret = void 0;
|
|
const Entity_1 = require("../../../../shared/domain/Entity");
|
|
const UniqueId_1 = require("../../../../shared/domain/UniqueId");
|
|
class TOTPSecret extends Entity_1.Entity {
|
|
static create(props, id) {
|
|
return new TOTPSecret(props, id ?? UniqueId_1.UniqueId.create());
|
|
}
|
|
static reconstitute(props, id) {
|
|
return new TOTPSecret(props, id);
|
|
}
|
|
get userId() { return this.props.userId; }
|
|
get secret() { return this.props.secret; }
|
|
get verified() { return this.props.verified; }
|
|
get createdAt() { return this.props.createdAt; }
|
|
verify() { this.props.verified = true; }
|
|
}
|
|
exports.TOTPSecret = TOTPSecret;
|