Two-Factor Authentication (2FA)

Add an extra layer of security to your account with time-based one-time passwords (TOTP).

🔐 What is 2FA?

Two-factor authentication requires two forms of verification:

  1. Something you know: Your password
  2. Something you have: Your phone with authenticator app
Why Use 2FA?
  • Protects against stolen passwords
  • Prevents unauthorized access
  • Meets compliance requirements
  • Industry standard security practice

📱 Supported Authenticator Apps

Google Authenticator

iOS and Android
Free, simple interface

Microsoft Authenticator

iOS and Android
Cloud backup support

Authy

iOS, Android, Desktop
Multi-device sync

1Password

All platforms
Password manager + 2FA

✨ Setting Up 2FA

Step 1: Enable 2FA

  1. Click your avatar (top right)
  2. Select "Settings"
  3. Navigate to "Security" tab
  4. Click "Enable Two-Factor Authentication"

Step 2: Scan QR Code

  1. Open your authenticator app
  2. Tap "Add Account" or "+"
  3. Choose "Scan QR Code"
  4. Point camera at the QR code on screen
Can't Scan?

Click "Enter code manually" and type the secret key shown on screen.

Step 3: Save Backup Codes

You'll receive 10 backup codes. Store them securely:

Step 4: Verify Setup

  1. Enter the 6-digit code from your authenticator app
  2. Click "Verify and Enable"
  3. You'll see a success message

🔓 Logging In with 2FA

Standard Login Process

  1. Enter your email and password
  2. Click "Sign In"
  3. You'll be prompted for 2FA code
  4. Open your authenticator app
  5. Enter the 6-digit code
  6. Click "Verify"
Trust This Device

Check "Trust this device for 30 days" to skip 2FA for trusted devices.

🆘 Recovery Methods

Using Backup Codes

If you don't have access to your authenticator app:

  1. Click "Use backup code" on 2FA screen
  2. Enter one of your backup codes
  3. The code will be consumed (one-time use)
Lost Backup Codes?

Contact your system administrator to reset 2FA. They can disable 2FA for your account so you can set it up again.

Regenerating Backup Codes

If you're running low on backup codes:

  1. Go to Settings → Security
  2. Click "Regenerate Backup Codes"
  3. Save the new codes securely
  4. Warning: Old codes will be invalidated

📱 Managing 2FA

Switching Devices

Moving to a new phone?

Option 1: Transfer Before Switching

  1. Setup authenticator app on new device
  2. Go to Datix xAgents Settings → Security
  3. Click "Show QR Code"
  4. Scan with new device
  5. Verify it works
  6. Remove from old device

Option 2: Reset After Switching

  1. Use backup code to login
  2. Disable 2FA
  3. Re-enable 2FA
  4. Scan QR with new device
  5. Save new backup codes

Disabling 2FA

Not Recommended

Disabling 2FA reduces account security.

To disable:

  1. Go to Settings → Security
  2. Click "Disable Two-Factor Authentication"
  3. Enter your password
  4. Enter current 2FA code
  5. Confirm

👑 Admin Controls

Enforcing 2FA

Admins can require 2FA for all users:

  1. Go to Admin → Settings
  2. Navigate to Security Policies
  3. Enable "Require 2FA for all users"
  4. Set grace period (e.g., 7 days)
Grace Period

Users will be reminded to enable 2FA but can still login. After grace period, 2FA becomes mandatory.

Resetting User 2FA

If a user loses access to their authenticator:

  1. Go to Admin → Users
  2. Find the user
  3. Click "Reset 2FA"
  4. Confirm the action
  5. Notify the user to re-enable 2FA

Monitoring 2FA Adoption

Track 2FA usage across your organization:

🔒 Security Best Practices

✅ Use Password Manager

Store backup codes in encrypted vault

✅ Regular Backups

Keep backup codes updated and accessible

✅ Multiple Devices

Setup authenticator on backup device

✅ Review Sessions

Check active sessions regularly

❌ Don't Share Codes

2FA codes are personal, never share

❌ Don't Screenshot

Don't save QR codes in photos

❓ Common Issues

Code Not Working

Troubleshooting Steps
  1. Check time sync: Ensure phone time is set automatically
  2. Wait for new code: Codes expire every 30 seconds
  3. Verify correct account: Check you're using right account in app
  4. Try backup code: Use backup code if issue persists

Lost Authenticator App

Solution: Use a backup code to login, then disable and re-enable 2FA.

Backup Codes Not Working

Possible causes:

Solution: Contact admin for 2FA reset.

🎓 Advanced Topics

API Access with 2FA

When using APIs with 2FA-enabled accounts:

SSO and 2FA

If using Single Sign-On (SSO):

🚀 Next Steps