Tenant Two-Factor Config

Admin form to configure 2FA settings for tenants

SaaSAuth

Overview

TenantTwoFactorConfigForm allows tenant administrators to configure two-factor authentication requirements for their organization. It provides a toggle to enable/disable 2FA and enforcement mode selection (optional or mandatory). Mandatory mode warns that existing users will need to set up 2FA on their next login. Supports saving states, error display, and custom labels for i18n.

Usage

import { TenantTwoFactorConfigForm } from "@leanicon/web-builder-library/saas";

<TenantTwoFactorConfigForm
  config={{ enabled: true, enforcementMode: "optional" }}
  onSave={async (config) => await updateTenantConfig(config)}
/>;

Variants

Disabled

Two-Factor Authentication

Configure 2FA requirements for your organization

Allow users to set up two-factor authentication

Enabled (Optional)

Two-Factor Authentication

Configure 2FA requirements for your organization

Allow users to set up two-factor authentication

Enforcement

Users can choose to enable 2FA

All users must enable 2FA before accessing the app

Enabled (Mandatory)

Two-Factor Authentication

Configure 2FA requirements for your organization

Allow users to set up two-factor authentication

Enforcement

Users can choose to enable 2FA

All users must enable 2FA before accessing the app

Saving

Two-Factor Authentication

Configure 2FA requirements for your organization

Allow users to set up two-factor authentication

Enforcement

Users can choose to enable 2FA

All users must enable 2FA before accessing the app

With Error

Two-Factor Authentication

Configure 2FA requirements for your organization

Allow users to set up two-factor authentication

Enforcement

Users can choose to enable 2FA

All users must enable 2FA before accessing the app

With Custom Labels

Autenticacion de dos factores

Configure los requisitos de 2FA para su organizacion

Allow users to set up two-factor authentication

Props

NameTypeDefaultRequiredDescription
configTenantTwoFactorConfig—Yes
onSave(config: TenantTwoFactorConfig) => void—Yes
isSavingbooleanfalseNo
errorstring—No
labelsTenantTwoFactorConfigLabels—No
classNamestring—No