Migrating from Auth0
UniAuth implements OIDC discovery and common authorization paths, but it is not a drop-in Auth0 replacement. Rehearse the exact client authentication, grants, scopes, claims, redirects, token validation, logout, and failure cases before cutover.
Endpoint Mapping
| Auth0 | UniAuth |
|---|---|
| .well-known/openid-configuration | .well-known/openid-configuration |
| .well-known/jwks.json | .well-known/jwks.json |
| /authorize | /api/oauth/authorize |
| /oauth/token | /api/oauth/token |
| /userinfo | /api/oauth/userinfo |
| /v2/logout | /api/oauth/end-session |
| /oauth/revoke | /api/oauth/revoke |
| /oauth/device/code | /api/oauth/device |
| /oauth/token (client_credentials; limited Beta, admin-configured confidential clients only) | /api/oauth/token |
| /oauth/introspect | /api/oauth/introspect |
| /oauth/par | /api/oauth/par |
| /oidc/register | /api/oauth/register |
Best practice: Use discovery rather than hardcoding endpoints, but do not treat issuer replacement as proof of compatibility. Point the reviewed client at https://uniauth.id.
Claim Mapping
| Auth0 Claim | UniAuth Claim | Notes |
|---|---|---|
| sub | sub | Pairwise (app-specific) in UniAuth by default — privacy-preserving |
| Same standard claim name; verify presence, value, and semantics for the exact scopes and profile. | ||
| email_verified | email_verified | Same standard claim name; verify presence, value, and semantics for the exact scopes and profile. |
| name | name | Same standard claim name; verify presence, value, and semantics for the exact scopes and profile. |
| nickname | nickname | Same standard claim name; verify presence, value, and semantics for the exact scopes and profile. |
| picture | picture | Same standard claim name; verify presence, value, and semantics for the exact scopes and profile. |
| https://yourapp.com/roles | groups | UniAuth uses its flat groups claim; it is not a standard OIDC scope or claim and does not use an Auth0 custom namespace. |
| app_metadata.role | groups | Use groups claim with group membership |
| https://yourapp.com/tenant | org_id or groups | Use native organizations or groups |
| amr | amr | UniAuth AMR values can include pwd/mfa, totp/sms/email, and passkey-related hwk/swk on documented paths. Do not map by label alone; verify the exact combination and semantics for the profile. |
| acr | acr | urn:uniauth:acr:{pwd,mfa,passkey} |
Key Differences
1. Pairwise Subject Identifiers
Auth0 gives every app the same sub for a user. UniAuth gives each app a different one (HMAC-SHA256 of user ID + client ID). This is a privacy feature — apps can’t correlate users across services. If you need to migrate existing users by sub, keep a mapping table or use email as the join key.
2. Custom Claim Namespace
Auth0 requires namespaced claims for custom data (e.g. https://yourapp.com/roles). UniAuth uses flat, non-namespaced UniAuth claim names — groups, trust_tier, etc. Your code can stop stripping namespaces.
3. Universal Login vs. Your UI
Auth0’s Universal Login is customizable but lives on their domain. UniAuth’s login page is customizable at Developer Console → Branding (per-client logo, colors, support URLs). Same concept, different UX.
4. Rules / Actions → Custom Claims
Auth0 Rules/Actions map user data into ID tokens. UniAuth uses per-client custom claim mappings configured in the Developer Console — static values, user field references, or role-based.
5. Back-Channel Logout
Auth0 offers back-channel logout on selected plans. UniAuth has a tier-independent limited-beta source path with a durable queue and bounded delayed retries, but remote delivery is not guaranteed and must be tested for the exact relying party. See Logout Guide.
6. Token Lifetimes
Auth0 defaults: access tokens 24h, refresh tokens 30d (configurable per API). UniAuth defaults: access tokens 1h, refresh tokens 30d (rotating, family-tracked for replay detection), ID tokens 1h. If your client was hardcoded to assume 24h access tokens, either refresh more aggressively or adjust the tenant-wide lifetime in the admin console.
Minimal Code Diff
The issuer line below is only a starting point; client credentials, redirects, claims, token validation, logout, and failure behavior still require explicit migration and testing:
- issuer: https://{yourTenant}.auth0.com/
+ issuer: https://uniauth.id
- client_id: {your auth0 client id}
+ client_id: uni_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- client_secret: {your auth0 client secret}
+ client_secret: unis_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxMigration Checklist
- Create a UniAuth OAuth client at Developer Console.
- Replace Auth0 domain with
https://uniauth.idin config. - Update redirect_uri and post_logout_redirect_uri on your OAuth client.
- Map namespaced claim accessors to the reviewed UniAuth claim names (
groupsinstead ofhttps://yourapp/roles). - Build a sub-mapping table during cutover if you’re preserving user IDs.
- Request operator-managed Limited Beta enrollment for an RS256 client and a credential-free, fragment-free HTTPS backchannel_logout_uri on a non-punycode ASCII DNS hostname, with no explicit port or port 443; delivery is not guaranteed
- Test the full flow against our Integration Checklist.
- Export users from Auth0 (Management API
GET /api/v2/users), transform to the UniAuth import schema, thenPOST /api/admin/users/import(JSON; schema validation caps a request at 10,000 rows and supports dry-run). This is an input cap, not a throughput guarantee; rehearse smaller batches and reconcile results.
Need Help?
Migration support is available — contact us.