Migrating from Okta
UniAuth implements OIDC discovery and common provider paths, but it is not officially certified and issuer replacement is not guaranteed to be sufficient. Rehearse the exact client, claims, scopes, logout, and failure cases; this page covers known edge cases.
Endpoint Mapping
| Okta | UniAuth |
|---|---|
| /.well-known/openid-configuration | /.well-known/openid-configuration |
| /oauth2/default/.well-known/openid-configuration | /.well-known/openid-configuration |
| /oauth2/v1/keys | /.well-known/jwks.json |
| /oauth2/v1/authorize | /api/oauth/authorize |
| /oauth2/v1/token | /api/oauth/token |
| /oauth2/v1/userinfo | /api/oauth/userinfo |
| /oauth2/v1/logout | /api/oauth/end-session |
| /oauth2/v1/revoke | /api/oauth/revoke |
| /oauth2/v1/introspect | /api/oauth/introspect |
| /oauth2/v1/device/authorize | /api/oauth/device |
| /oauth2/v1/clients | /api/oauth/register |
Authorization Servers: Okta has multiple (Org AS + Custom AS at/oauth2/{asId}). UniAuth has one, rooted at https://uniauth.id. Point a reviewed client at that issuer, inspect advertised metadata, and test the exact Okta-to-UniAuth profile; discovery does not complete the migration.
Claim Mapping
| Okta claim | UniAuth claim | Notes |
|---|---|---|
| sub | sub | Okta ties sub to user ID; UniAuth uses pairwise HMAC (different per app) |
| Standard claim name; verify exact presence, value, and semantics for the profile. | ||
| email_verified | email_verified | Standard claim name; verify exact presence, value, and semantics for the profile. |
| name | name | Standard claim name; verify exact presence, value, and semantics for the profile. |
| given_name | given_name | Standard claim name; verify exact presence, value, and semantics for the profile. |
| family_name | family_name | Standard claim name; verify exact presence, value, and semantics for the profile. |
| preferred_username | preferred_username | Standard claim name; verify exact presence, value, and semantics for the profile. |
| locale | locale | Standard claim name; verify exact presence, value, and semantics for the profile. |
| zoneinfo | zoneinfo | Standard claim name; verify exact presence, value, and semantics for the profile. |
| groups | groups | Configure and verify the groups claim separately on each side; do not assume a universal two-sided groups scope. |
| cid / uid / scp | — | Okta-specific; UniAuth uses standard aud + scope |
| idp / idp_type | — | Okta federation metadata; use groups claim instead |
| auth_time | auth_time | Standard claim name; verify exact presence, value, and semantics for the profile. |
| amr | amr | Okta and UniAuth AMR vocabularies overlap but are not equivalent. UniAuth paths can emit pwd/mfa, totp/sms/email, and passkey-related hwk/swk; verify the exact combination and semantics. |
| acr | acr | UniAuth: urn:uniauth:acr:pwd / :mfa / :passkey |
Key Behavioral Differences
1. Pairwise subject identifiers
Okta’s sub is the internal user ID, identical across apps. UniAuth computes a per-client pairwisesub so two apps see different values for the same user. If you correlate users across apps via sub, stop — use email or federated identity instead.
2. Access tokens are opaque on Okta Org AS
Okta Org Authorization Server access tokens are opaque and require introspection. UniAuth requires RS256 for current authority-bearing JWT access tokens and retains HS256 verification only for older tokens without current authority fields. Treat tokens as opaque unless your exact deployment profile fixes the algorithm. If your resource server called /introspect on every request, keep introspection unless you have verified that the exact token is RS256 and the published issuer JWKS applies. Do not assume every UniAuth access token is locally verifiable.
Lifetimes: Okta documents a configurable 1h access-token default. UniAuth's documented defaults are 1h access and ID tokens plus 30d rotating refresh tokens. This is a starting comparison, not equivalence; verify the effective values and lifecycle behavior.
3. Hooks / Inline Hooks → Custom Claims
Okta Inline Hooks can run synchronous token-issuance logic. UniAuth has narrower alternatives, not an equivalent hook runtime:
- Static / DB-driven claims → per-client Custom Claim Mappings in the developer console (
static:value,user.field,role) - Dynamic / external lookup → call your backend from the client after login; do not block token issuance
4. Authorization Policies
Okta authorization-server policies have no one-to-one UniAuth equivalent. The narrower controls below apply only on their documented paths and must be validated separately:
- Network zones / IP allowlist →
ip_access_list(admin → Conditional Access) - MFA step-up → request
acr_values=urn:uniauth:acr:mfain the authorize request - User group restrictions → restrict per client via
access_policies - Risk-based auth → reviewed conditional access across 12 named sign-in/session-admission modules combines exact-IP ip_access_list, organization-CIDR restrictions from the user policy digest, and GeoIP-dependent country conditions from active access_policies; an unresolved country does not match. Fresh first/new-IP, new-UA, unusual-UTC-hour, recent-failure, and login-velocity factors can contribute to the combined risk decision; no single signal is a direct action. OAuth device flow is outside this scope. Impossible-travel and geo_blocking_config do not contribute to this decision. The impossible-travel scaffold also has no production location writer, trustworthy geolocation, physical-travel detection, authentication integration, blocking, or durable alert persistence
5. Sign-on rules / Device Trust
Okta Device Trust requires their MDM integration. UniAuth binds native sessions to per-install trust (expiring and revocable), which can extend session lifetime and reduce conditional-access risk without replacing required MFA — configurable lifetime, user-revocable from /account/security.
User Migration
Three common strategies:
Gradual (recommended)
Keep Okta live. Provision accounts before cutover through a separately validated SCIM process or rehearsed bulk import (POST /api/admin/users/import).
Passwords: standard profile import sends no onboarding message. Imported users need a separately initiated supported password reset or magic-link sign-in, or a separately validated bridge, before password sign-in; password hashes do not migrate through the standard path.
Export + bulk import
Export users via Okta Users API (GET /api/v1/users), transform to the UniAuth import JSON schema, POST to /api/admin/users/import (schema validation caps a request at 10,000 rows). This is an input cap, not a throughput guarantee; rehearse smaller batches and reconcile results.
Pre-provision users; standard profile import sends no onboarding message. Before password sign-in, separately initiate a supported password reset or magic-link sign-in, or use a separately validated bridge.
SCIM from Okta
A separately validated provisioning process may send supported SCIM records to UniAuth. Do not assume an Okta directory connector is automatic or equivalent; test schema, credentials, reconciliation, deprovisioning, and rollback.
Minimal Code Diff
The issuer change below is only a starting point; verify client authentication, redirects, scopes, claims, token validation, logout, and failure behavior:
- issuer: https://{yourOrg}.okta.com/oauth2/default
- issuer: https://{yourOrg}.okta.com
+ issuer: https://uniauth.id
- client_id: 0oa…
- client_secret: …
+ client_id: uni_…
+ client_secret: unis_…