I’m running into this error when attempting to hit the /continue
URL of a PostLogin Action flow.
Unable to process redirect callback. This is often caused by calling the /continue endpoint with an invalid state parameter.
Context
Specifically, I’m attempting to migrate our use of the Auth0 Link Account Extension.
This old extension relies on rules, which are being deprecated. As far as I can tell, there is no official support from Auth0 to do account linking, and we must implement it ourselves.
Per guidance in the docs, I’m using a combination of PostLogin actions, and my own external app to provide a way for a user to automatically link accounts when logging in.
- User signs up with Username/PW via Auth0. They use the app.
- Later, User logs in with a secondary provider (e.g. google-oauth2)
- PostLogin action detects that this social login is a candidate for account linking
- PostLogin redirects social login user to an external app
- External app challenges User to verify Username/PW, and uses the Management API to link accounts together
At this point, I’m attempting to redirect the user back to /continue
(with the same auth0DOMAIN and state param), where I will be able to call
api.authentication.setPrimaryUser(primaryUserId);
and complete the flow.
However, I keep landing on an Auth0 error page.
I found this post that mentions 3 possible causes for this problem (even if the state
param matches). It would appear that I might be falling into the third scenario:
- The account that the user just logged in with is linked as a secondary identity before the call to /continue.
There’s no solution listed for this issue in the post, and it would appear to contradict the suggested way to provide account linking with actions, so I’m a bit stuck.
Would appreciate any help or guidance from the Auth0 team!
Thanks,
Chris