Multi-Factor Authentication (MFA)
Multi-Factor Authentication (MFA) in RegScale
This guide explains how Multi-Factor Authentication works in RegScale and provides step-by-step instructions for configuring MFA for end users.
Overview
RegScale implements Time-based One-Time Password (TOTP) authentication, the same standard used by Google, Microsoft, and GitHub. Users authenticate with their password plus a 6-digit code from an authenticator app.
Supported Authenticator Apps
Any TOTP-compatible authenticator app works with RegScale:
- Google Authenticator (iOS/Android)
- Microsoft Authenticator (iOS/Android)
- Authy (iOS/Android/Desktop)
- 1Password (with TOTP support)
- FreeOTP (iOS/Android)
How MFA Works
Authentication Flow
┌─────────────────────────────────────────────────────────────┐
│ LOGIN PROCESS │
├─────────────────────────────────────────────────────────────┤
│ │
│ 1. Enter Username │
│ ↓ │
│ 2. System checks if MFA is required for your tenant │
│ ↓ │
│ 3. Enter Password + 6-digit code from authenticator app │
│ ↓ │
│ 4. System validates both credentials │
│ ↓ │
│ 5. Access granted │
│ │
└─────────────────────────────────────────────────────────────┘
Technical Details
- Code Duration: Each 6-digit code is valid for 30 seconds
- Algorithm: TOTP (RFC 6238) with SHA-1
- Secret Storage: Encrypted at rest using AES-256
- Validation: Strict time-window matching
Administrator Configuration
Enabling MFA for a Tenant
Administrators can require MFA for all local users in a tenant:
- Navigate to Admin → Tenant Settings
- Locate the Security section
- Toggle "Require Multi-Factor Authentication (MFA) for All Local User Accounts" to ON
- Optionally, set an MFA Prefix (e.g., your company name)
- This appears in the authenticator app as the issuer name
- Example: "Acme Corp - [email protected]"
- Save changes
Note: When MFA is enabled at the tenant level, all local users must configure MFA before they can log in.
Configuration Options
| Setting | Description | Default |
|---|---|---|
| Force Multi-Factor | Requires MFA for all local users | Off |
| MFA Prefix | Custom issuer name in authenticator apps | "RegScale" |
End User Setup Guide
Prerequisites
Before setting up MFA, ensure you have:
- Access to your registered email address
- An authenticator app installed on your mobile device
- Your RegScale username and password
Step-by-Step Setup
Step 1: Request QR Code
- Go to the RegScale login page
- Enter your username (do not submit yet)
- Click "Generate QR Code for Authenticator App"
- You will receive an email with a one-time access token
Step 2: Retrieve Access Token
- Check your email for a message from RegScale
- Copy the access token from the email
- This token is valid for 1 hour
Step 3: Generate QR Code
- Return to the RegScale login page
- Click the QR Code modal/button
- Paste the access token from your email
- Click "Generate QR Code"
- A QR code will appear on screen
Step 4: Scan with Authenticator App
- Open your authenticator app
- Tap "Add Account" or the "+" button
- Select "Scan QR Code"
- Point your camera at the QR code on screen
- The account will be added to your app
Your authenticator app will now display:
RegScale - [email protected]
123 456
(The 6-digit code changes every 30 seconds)
Step 5: Verify Setup
- Enter your username and password
- Enter the current 6-digit code from your authenticator app
- Click Login
- If successful, MFA is configured!
Logging In with MFA
Once MFA is configured, follow these steps each time you log in:
- Enter your username
- Enter your password
- Open your authenticator app
- Enter the current 6-digit code displayed for RegScale
- Click Login
Tip: Enter the code quickly - codes expire every 30 seconds. If your code expires, wait for the next one.
Troubleshooting
"Invalid MFA Token" Error
Cause: The 6-digit code doesn't match.
Solutions:
- Ensure you're entering the code for the correct RegScale account
- Wait for the next code if the current one is about to expire
- Verify your device's time is accurate (TOTP depends on synchronized clocks)
Code Always Rejected
Cause: Your device's clock is out of sync.
Solutions:
- iOS: Settings → General → Date & Time → Enable "Set Automatically"
- Android: Settings → System → Date & Time → Enable "Automatic date & time"
Lost Access to Authenticator App
Solutions:
- Contact your RegScale administrator
- Administrator can reset your MFA settings
- You will need to set up MFA again from scratch
QR Code Won't Scan
Solutions:
- Ensure adequate lighting
- Hold your phone steady
- Try zooming in slightly
- Manually enter the setup key if your app supports it
Access Token Expired
Cause: The email token is only valid for 1 hour.
Solution: Request a new QR code by clicking "Generate QR Code" again on the login page.
Security Best Practices
For End Users
- Secure your authenticator app with biometric or PIN lock
- Back up your authenticator - apps like Authy support cloud backup
- Never share your codes - they are single-use and time-sensitive
- Keep your device time accurate - automatic time sync is recommended
- Don't screenshot QR codes - treat them as passwords
For Administrators
- Enable MFA at tenant level for security-sensitive environments
- Set a recognizable MFA prefix so users can identify the correct account
- Document recovery procedures for users who lose authenticator access
- Monitor failed login attempts through security audit logs
- Consider MFA for all admin accounts regardless of tenant settings
Frequently Asked Questions
Can I use multiple authenticator apps?
Yes. When you scan the QR code, you can scan it with multiple authenticator apps. Each app will generate the same codes.
Does MFA work with SSO/SAML?
MFA in RegScale applies to local accounts only. If you use SSO (SAML, OAuth, LDAP), MFA is handled by your identity provider.
Can I disable MFA once it's enabled?
Individual users cannot disable MFA through the UI. Contact your administrator if MFA needs to be disabled for your account.
What happens if I get a new phone?
You'll need to set up MFA again:
- Contact your administrator to reset your MFA
- Follow the setup process on your new device
- If using Authy with cloud backup, your accounts transfer automatically
Is SMS or email-based MFA supported?
Currently, RegScale only supports TOTP (authenticator app). SMS and email codes are not available.
Related Documentation
Updated 2 days ago
