TenantAuthenticationConfig

Authentication configuration and requirements for a tenant workspace, defining which authentication methods are allowed, whether multi-factor authentication is required, session management policies, and login restrictions. This entity enables tenant-specific authentication policies where different organizations can enforce different security standards based on their risk profile and compliance requirements. It supports multiple authentication methods (password, SSO, SAML, OIDC, magic links), mandatory 2FA enforcement, session timeout policies, and authentication method restrictions. The entity works in conjunction with TenantSSOProvider for SSO configurations and TenantPasswordPolicy for password requirements. It serves as the authentication policy layer for multi-tenant platforms, enabling flexible authentication strategies across healthcare (HIPAA), finance (PCI-DSS), government, and enterprise applications.

11 properties
Schema

Properties

PropertyTypeModeDescriptionRequired
tenantTenant
stored

Reference to the Tenant this authentication configuration applies to

Required
require2FAboolean
stored

Whether two-factor authentication is mandatory for all users in this tenant

Example: true

Required
allowPasswordLoginboolean
stored

Whether password-based login is allowed (some tenants may require SSO-only)

Example: true

Required
allowedAuthMethodsstring[]
stored

Allowed authentication methods for this tenant

Values: password, sso, saml, oidc, oauth, magic-link, biometric

Example: ["password","sso"]

Optional
sessionTimeoutSecondsnumber
stored

Session timeout in seconds (user is logged out after this period of inactivity)

Example: 3600

Required
absoluteSessionTimeoutSecondsnumber
stored

Absolute session timeout in seconds (user must re-authenticate after this period regardless of activity)

Example: 28800

Optional
allowMultipleSessionsboolean
stored

Whether users can have multiple active sessions simultaneously

Example: true

Optional
maxConcurrentSessionsnumber
stored

Maximum number of concurrent sessions per user (null for unlimited)

Example: 3

Optional
requireEmailVerificationboolean
stored

Whether email verification is required for new user accounts

Example: true

Required
requirePhoneVerificationboolean
stored

Whether phone verification is required for new user accounts

Optional
metadatajson
stored

Additional authentication configuration metadata

Optional

Examples

Example 1

{
  "@type": "TenantAuthenticationConfig",
  "tenant": {
    "@type": "Tenant",
    "slug": "acme-corp",
    "name": "ACME Corporation"
  },
  "require2FA": true,
  "allowPasswordLogin": true,
  "allowedAuthMethods": [
    "password",
    "sso",
    "saml"
  ],
  "sessionTimeoutSeconds": 3600,
  "absoluteSessionTimeoutSeconds": 28800,
  "allowMultipleSessions": true,
  "maxConcurrentSessions": 5,
  "requireEmailVerification": true,
  "requirePhoneVerification": false
}

Example 2

{
  "@type": "TenantAuthenticationConfig",
  "tenant": {
    "@type": "Tenant",
    "slug": "techstart",
    "name": "TechStart Inc"
  },
  "require2FA": false,
  "allowPasswordLogin": true,
  "allowedAuthMethods": [
    "password"
  ],
  "sessionTimeoutSeconds": 7200,
  "allowMultipleSessions": true,
  "requireEmailVerification": true,
  "requirePhoneVerification": false
}