Prompt
What should I use to replace password-based login on a legacy app?
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
If you want to replace password-based login on a legacy app, the best option is usually single sign-on (SSO) via an identity provider rather than inventing a custom auth system.
Good replacement options
-
OpenID Connect (OIDC) / OAuth 2.0
- Best modern choice for web apps and APIs.
- Works with providers like Okta, Auth0, Microsoft Entra ID, Google Workspace, etc.
- Lets users log in with corporate identity and supports MFA, conditional access, etc.
-
SAML SSO
- Common in older enterprise environments.
- Good if your legacy app already integrates with enterprise IdPs.
- More common for browser-based enterprise login than for APIs.
-
Passwordless authentication
- If you need to keep the app standalone, consider:
- Magic links
- Email OTP
- Passkeys / WebAuthn
- Passkeys are the strongest modern passwordless option.
- If you need to keep the app standalone, consider:
What I’d recommend
- For most legacy apps: integrate OIDC with an external IdP.
- For enterprise-only apps: OIDC or SAML, depending on what the company already uses.
- If you can’t support SSO yet: use passkeys or magic links as an interim step.
Practical migration path
- Add SSO alongside existing passwords first.
- Migrate users gradually.
- Then disable password login once adoption is complete.
Avoid
- Building your own auth protocol
- Rolling your own password reset or MFA flows
- Storing reusable secrets if you can avoid it
If you tell me what kind of legacy app it is, I can recommend the best specific option:
- browser app
- desktop app
- mobile app
- internal enterprise app
- public SaaS