Integration Checklist
37 items to rehearse before production. This is a review aid for the exact integration; no SDK or checklist completion is assumed to handle these controls automatically.
Tip: Use this list as a starting point. Applicability depends on the exact client and deployment, and completing it does not prove security, conformance, or interoperability.
Discovery & Setup
Authorization Flow
Use authorization code flow (no implicit)docs →
Include S256 PKCE for public clients; for confidential clients, verify the effective deployment and per-client policy.docs →
Generate cryptographically random state (CSRF defense)
Generate a nonce and include it in the ID token check
Validate state matches on callback
ID Token Verification
Fetch JWKS from jwks_uri and cache (refresh every 24h or on kid miss)docs →
Verify RS256 signature using JWKS
Verify iss == 'https://uniauth.id'
Verify aud contains your client_id
Verify exp > now
Verify nonce matches the one you sent
Verify at_hash matches the access token hash (prevents token substitution — OIDC Core §3.1.3.6)
Check auth_time if you set max_age
Authorization
Check email_verified before granting trust
Use the groups claim for RBAC (not env-var allowlists)docs →
Check trust_tier for risk-based access control
Use acr claim to enforce step-up (e.g. require MFA for sensitive ops)
Token Lifecycle
Store tokens securely (HttpOnly cookie or secure storage)
Refresh access token before expiry (use expires_in)docs →
Rotate refresh tokens (new one returned each refresh)
Handle refresh token reuse errors (family revoked — force re-login)
Logout
Use end_session_endpoint to request UniAuth confirmation; local logout alone leaves the OP session activedocs →
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 guaranteeddocs →
Verify logout_token with RS256 only; require typ=logout+jwt, iss, aud, numeric iat/exp, non-empty jti, events, and sub or sid; reject noncedocs →
Security
Validate redirect_uri on every callback (exact match)
Use Content-Security-Policy with frame-ancestors 'none' on OAuth pages
Rate limit your callback endpoint
Don't log access/refresh/id tokens
Rotate client_secret periodically via Developer Console
Observability
Log the authentication method (amr) for audit trails
Log the authentication context class (acr)
Monitor /userinfo 401s — may indicate revoked sessions
Alert on back-channel logout 4xx responses
Still Missing Something?
If you’re unsure whether your integration covers all these boxes, check the Error Reference, or join us on support.