Authentication & SSO
CHANGENTS.AI supports multiple authentication methods to meet the security requirements of individuals and enterprises.
Authentication Methods
| Method | Supported | Plan |
|---|---|---|
| Email + Password | ✓ | All |
| Google OAuth 2.0 | ✓ | All |
| Apple Sign-In | ✓ | All (iOS / web) |
| Microsoft OAuth (Azure AD) | ✓ | All |
| TOTP-based MFA | ✓ | All |
| Enterprise SSO (SAML 2.0) | Coming soon | Enterprise |
Email + Password
Passwords are hashed using bcrypt (12 rounds) before storage. Plain-text passwords are never stored or logged.
Password requirements:
- Minimum 8 characters
- At least one uppercase, one lowercase, one number
- Common passwords are rejected
Google OAuth 2.0
Users sign in with their Google account. CHANGENTS.AI requests the following scopes:
openid— identityemail— email addressprofile— display name and avatar
CHANGENTS.AI does not request access to Gmail, Drive, or Calendar during login. Those scopes are requested separately only when the user connects a Google integration.
Production callback URL:
https://changents.ai/auth/callback/googleFor self-hosted deployments, see Google OAuth Production Setup.
Apple Sign-In
Supports the "Hide My Email" relay feature. When a user signs in with Apple using a relay address:
- CHANGENTS.AI stores the relay email
- All outbound emails go to the relay address
- Apple forwards to the user's real email
Microsoft OAuth (Azure AD)
Works with both personal Microsoft accounts and organisational Azure AD accounts.
To whitelist CHANGENTS.AI in your organisation's Azure AD:
- Go to Azure Portal → Azure Active Directory → Enterprise Applications
- Add "CHANGENTS.AI" and grant admin consent for the required scopes
- Ensure the app's reply URL matches your deployment URL
Multi-Factor Authentication (MFA)
TOTP-based MFA (compatible with Google Authenticator, Authy, 1Password).
Enrolling MFA
- Go to Profile → Security → Enable MFA
- Scan the QR code with your authenticator app
- Enter the 6-digit code to confirm enrolment
- Save your backup codes in a secure location
MFA at Login
After entering your password, you'll be prompted for a 6-digit code from your authenticator app.
Enterprise MFA Enforcement
An organisation can require MFA for every member:
- Open Organization Settings → Organization.
- Turn on Require MFA for all members.
- Members without MFA enrolled are asked to set it up at their next sign-in.
Session Management
| Token type | Lifetime | Storage |
|---|---|---|
| Access token (JWT) | 24 hours | In-memory / secure storage |
| Refresh token | 30 days | HttpOnly cookie (web) / secure storage (mobile) |
Refresh tokens are single-use — a new one is issued on every refresh. Compromised refresh tokens are automatically revoked if used after rotation.
Linking Multiple Providers
A single CHANGENTS.AI account can link multiple OAuth providers:
POST /auth/link/{provider}
Authorization: Bearer {token}This allows users to log in with any of their linked providers (e.g., they can use either Google or Microsoft to access the same account).