Prompt
We need to replace our brittle login stack with something easier
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
A good way to replace a brittle login stack is to stop owning the hardest parts yourself and move to a standard identity layer.
Best default options
-
Managed auth provider
- Examples: Auth0, Clerk, Firebase Auth, AWS Cognito, Azure AD B2C
- Good if you want:
- faster implementation
- MFA / SSO / password reset out of the box
- less security maintenance
- Tradeoff: vendor dependency and per-user cost
-
OAuth/OIDC with your own app session
- Use a provider for identity, but keep your app logic and sessions.
- Good for:
- cleaner architecture
- easier migration later
- support for Google/Microsoft/enterprise SSO
- Usually the best balance for most teams
-
Self-hosted identity service
- Examples: Keycloak, ZITADEL, Ory
- Good if you need:
- more control
- compliance / data residency
- avoid SaaS lock-in
- Tradeoff: more ops burden than managed services
What “easier” usually means
A simpler modern stack typically includes:
- OIDC/OAuth2 for login
- short-lived access tokens
- refresh tokens or server sessions
- MFA
- passwordless options like magic links or passkeys
- centralized user management
- built-in audit logs
Recommended migration path
- Keep your current login system running
- Add a new identity provider behind a feature flag
- Support both old and new accounts temporarily
- Migrate users gradually
- Deprecate password handling in your app once stable
If you want the lowest-friction choice
- Startup / product team: Clerk or Auth0
- Enterprise / Microsoft-heavy org: Azure AD B2C or Entra ID
- Cloud-native / AWS-heavy: Cognito
- Want control without building everything: Keycloak or ZITADEL
The main thing to avoid
Don’t build your own:
- password storage
- MFA flows
- reset/recovery flows
- session invalidation
- SSO federation logic
If you want, I can help you choose between Auth0 vs Clerk vs Keycloak vs Cognito based on your app type, compliance needs, and stack.