On this page
- Key Takeaways
- Identify the relying party ID before planning redirects
- Separate the redirect plan from the sign-in plan
- Pre-migration test checklist
- 1. Inventory the existing flow
- 2. Test existing accounts and passkeys
- 3. Test new enrollment
- 4. Test fallback and recovery
- 5. Rehearse cutover and rollback
- Common Mistakes
- Best Practices
- Conclusion
Passkeys after changing a website domain may continue working—or users may need to enroll new ones. The answer depends on the relying party ID used for authentication, where the browser performs the sign-in ceremony, and the migration options supported by your identity provider.
Use this checklist with your authentication team before changing DNS or redirecting traffic. The W3C Web Authentication specification is the primary technical reference for relying party ID and origin rules. Current browser and identity-provider documentation was not available for review here, so verify product-specific behavior and migration options before committing to a plan.
Key Takeaways
- A URL redirect moves the browser; it does not by itself transfer a passkey to a different relying party ID.
- A change between subdomains may preserve the existing relying party ID, but only if the authentication configuration and origin checks permit it.
- If authentication happens on an identity provider’s unchanged domain, the application’s domain change may not change the passkey’s relying party ID. Confirm the actual flow.
- Test existing passkeys, new enrollment, fallback sign-in, and recovery on the devices and browsers your users rely on.
- Do not promise passkey portability or a migration mechanism until the relevant browser and provider documentation confirms it for your configuration.
Identify the relying party ID before planning redirects
In Web Authentication, the relying party ID, or RP ID, identifies the site scope for a credential. The origin identifies the page initiating the browser operation, including its scheme, host, and port. These are related but are not interchangeable: the server must also check that the returned authentication data is valid for the expected RP ID and origin.
For an ordinary WebAuthn flow, an RP ID can be the origin’s domain or an eligible parent domain. Browser rules and server-side origin validation both matter. An unchanged RP ID alone does not prove that a new origin will be accepted.
Consider these illustrative cases:
| Change | Question to investigate |
|---|---|
login.example.com to accounts.example.com | Were existing credentials registered with the shared RP ID example.com, and will the new origin be accepted? If the RP ID was login.example.com, the sibling domain cannot simply use that ID under ordinary scope rules. |
example.com to example.org | The names do not share an eligible parent RP ID. Do not assume credentials registered for one RP ID will work for the other; investigate provider and browser-supported options. |
Application moves, but sign-in remains on login.example.com | Does the WebAuthn ceremony really remain on that origin with the same RP ID and server-side validation? If so, the application URL alone does not establish a passkey change. |
Changing the configured RP ID from a specific host to its parent is not automatically a way to retain existing credentials: the original RP ID is part of their authentication scope. Treat a proposed RP ID change as a credential migration question, not just a configuration cleanup.
Advertisement
Separate the redirect plan from the sign-in plan
An HTTP redirect can send visitors from an old URL to a new one. It does not rewrite the RP ID associated with an existing passkey or make the new origin acceptable to an authentication server.
A sign-in flow can also redirect users to a separate identity provider. In that case, inspect the origin where the passkey prompt is actually initiated, rather than assuming the application’s address is the RP ID. Also check the provider’s configuration for permitted application origins and redirect destinations; preserving the passkey ceremony does not guarantee the rest of the login flow will succeed.
Ask the authentication team to document:
- The old and proposed application origins, authentication origins, and RP IDs.
- Whether the application or an identity provider owns credential registration and verification.
- The server’s accepted origins and how they will change.
- Whether the old authentication domain will remain available, for how long, and who controls it.
- Any provider-supported transition or re-enrollment process, its prerequisites, and its fallback behavior.
- Browser and authenticator support for the exact approach, including any documented exceptions to ordinary RP ID scope rules.
Some migration approaches may rely on capabilities or configuration that vary by browser or provider. Check their current documentation and the Web Authentication specification before treating any such approach as available. Do not assume that syncing a passkey between devices also changes its RP ID or makes it usable at an unrelated domain.
Pre-migration test checklist
Run these tests in an authorized staging environment that reproduces the production authentication configuration as closely as possible. Use test accounts, not real user credentials. Record the browser, operating system, authenticator or passkey provider, RP ID, origin, and result for each case. Include the supported device and browser combinations your users actually need.
1. Inventory the existing flow
- Register a test passkey through the existing production-equivalent flow before changing the test configuration.
- Confirm which RP ID is sent in registration and authentication request options, and which origin initiates each operation. If the RP ID is omitted, determine the effective value using the applicable browser and provider documentation.
- Confirm the identity provider’s accepted origins, callback configuration, and account-linking behavior.
- Identify the supported fallback and recovery methods, including any restrictions imposed on particular account types.
2. Test existing accounts and passkeys
- Sign in with the previously enrolled passkey on the old flow as a baseline.
- Follow the proposed redirect and sign-in path to the new flow. Verify that the user reaches the correct account, not merely that a passkey prompt appears.
- Repeat on each relevant supported device and browser combination, including a device that already has access to the test credential and, where applicable, one expected to receive it through a passkey provider.
- Test an account with multiple passkeys and one with only a single passkey. Document what happens when the expected credential is unavailable.
- Inspect authentication errors without logging passkey secrets, recovery codes, session tokens, or other sensitive data.
Advertisement
3. Test new enrollment
- Sign in to an existing test account using an approved method and enroll a passkey through the new flow.
- Sign out and sign back in with that new passkey. Confirm the account and intended RP ID.
- Create a new test account after the migration and check both enrollment and subsequent sign-in.
- If the old flow remains available during transition, check whether credentials enrolled on each flow work only where expected. Do not assume the old and new credentials are interchangeable.
4. Test fallback and recovery
- Use each supported fallback method when a passkey is unavailable, then verify the user can reach the correct account.
- Exercise recovery for a test user who has lost access to their passkey and ordinary fallback factors. Include any manual support process and the checks needed before granting access.
- After legitimate fallback or recovery, test enrollment of a new passkey without silently creating a duplicate account or removing an existing credential unexpectedly.
- Confirm that fallback and recovery satisfy your organization’s authentication policy. A convenient recovery path must not become an easier way to take over an account.
5. Rehearse cutover and rollback
- Test the complete sequence: old URL, redirect, authentication, return to the application, and sign-out/sign-in again.
- Check how users with an active session differ from users signing in from a fresh session; an existing session can hide a broken passkey flow.
- Rehearse rollback, including DNS, redirects, provider configuration, and origin validation. Establish what happens to passkeys newly enrolled during the attempted migration.
- Assign owners for monitoring sign-in failures, support escalation, user communications, and the decision to pause or reverse cutover.
Common Mistakes
- Testing only the redirect. A successful page load says nothing about whether an existing credential can authenticate.
- Assuming every passkey belongs to the application hostname. A hosted identity provider may initiate the ceremony on a different origin.
- Changing the RP ID without testing old credentials. A shared parent domain can be useful for a planned scope, but switching to it is not the same as preserving the previous RP ID.
- Testing only a new enrollment. Newly created credentials can work while existing users remain locked out.
- Depending on an unverified portability claim. Confirm the exact browser, provider, and configuration requirements rather than generalizing from another deployment.
- Retiring the old domain too early. If a transition depends on the old origin, losing control of it can disrupt sign-in. Retaining it also requires ongoing ownership and security controls.
Best Practices
Agree on a migration decision before launch: preserve the existing authentication flow where supported, use a documented and verified transition mechanism, or provide a secure path for users to authenticate and enroll a new passkey. Make the decision for each affected account population, including users without access to their usual device.
Review the current W3C Web Authentication specification for RP ID and origin requirements, then check the current documentation for every identity provider and browser in scope. Record the documentation versions or access dates internally and rerun the test matrix if the configuration changes. Communicate any required user action before cutover and provide a support route for failed sign-ins.
Conclusion
A domain redirect and a passkey migration are separate projects. Identify the real authentication origin and RP ID, verify the provider and browser options, and test existing credentials and recovery before directing users to the new domain.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.