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:
- Something you know: Your password
- Something you have: Your phone with authenticator app
- 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
- Click your avatar (top right)
- Select "Settings"
- Navigate to "Security" tab
- Click "Enable Two-Factor Authentication"
Step 2: Scan QR Code
- Open your authenticator app
- Tap "Add Account" or "+"
- Choose "Scan QR Code"
- Point camera at the QR code on screen
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:
- ✅ Download and save to secure location
- ✅ Print and store in safe place
- ✅ Store in password manager
- ❌ Don't store in plain text on your computer
- ❌ Don't share with anyone
Step 4: Verify Setup
- Enter the 6-digit code from your authenticator app
- Click "Verify and Enable"
- You'll see a success message
🔓 Logging In with 2FA
Standard Login Process
- Enter your email and password
- Click "Sign In"
- You'll be prompted for 2FA code
- Open your authenticator app
- Enter the 6-digit code
- Click "Verify"
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:
- Click "Use backup code" on 2FA screen
- Enter one of your backup codes
- The code will be consumed (one-time use)
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:
- Go to Settings → Security
- Click "Regenerate Backup Codes"
- Save the new codes securely
- Warning: Old codes will be invalidated
📱 Managing 2FA
Switching Devices
Moving to a new phone?
Option 1: Transfer Before Switching
- Setup authenticator app on new device
- Go to Datix xAgents Settings → Security
- Click "Show QR Code"
- Scan with new device
- Verify it works
- Remove from old device
Option 2: Reset After Switching
- Use backup code to login
- Disable 2FA
- Re-enable 2FA
- Scan QR with new device
- Save new backup codes
Disabling 2FA
Disabling 2FA reduces account security.
To disable:
- Go to Settings → Security
- Click "Disable Two-Factor Authentication"
- Enter your password
- Enter current 2FA code
- Confirm
👑 Admin Controls
Enforcing 2FA
Admins can require 2FA for all users:
- Go to Admin → Settings
- Navigate to Security Policies
- Enable "Require 2FA for all users"
- Set grace period (e.g., 7 days)
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:
- Go to Admin → Users
- Find the user
- Click "Reset 2FA"
- Confirm the action
- Notify the user to re-enable 2FA
Monitoring 2FA Adoption
Track 2FA usage across your organization:
- Users with 2FA enabled
- Users without 2FA
- Recent 2FA setup dates
- 2FA login success rates
🔒 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
- Check time sync: Ensure phone time is set automatically
- Wait for new code: Codes expire every 30 seconds
- Verify correct account: Check you're using right account in app
- 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:
- Code already used (one-time use only)
- Codes regenerated (old codes invalidated)
- Typo in code entry
Solution: Contact admin for 2FA reset.
🎓 Advanced Topics
API Access with 2FA
When using APIs with 2FA-enabled accounts:
- Use API keys instead of password authentication
- API keys bypass 2FA requirement
- Generate keys in Settings → API Keys
- Rotate keys regularly
SSO and 2FA
If using Single Sign-On (SSO):
- 2FA is handled by your SSO provider (e.g., Azure AD, Okta)
- Datix xAgents 2FA is bypassed
- Configure 2FA in your SSO provider