Hi,
Our app has an endpoint where we redirect users when they register in FusionAuth. This endpoint receives a FusionAuth temporary code as a parameter and exchanges it for the access token by calling the exchangeOAuthCodeForAccessToken
method. This way we can complete the user registration on our side.
So far this was working fine but now we have configured our Application in FusionAuth to gate users’ accounts until their email has been verified.
So now when new users register, they get an email with a link to verify their email address. Once they have verified it the users are sent to a page ( /registration/complete
) saying "Thank you. Your email is verified".
We want to redirect the user from this page to the same endpoint we were using before adding the gate. We have tried to force it by adding a window.location.href
to the template for the "Verify registration complete" page but this is not sending a parameter with the temporary code we need to get the access token.
So my question is, how can we keep FusionAuth making the callback to the authorized redirect_uri
as it used to do before we added the gate?
Thanks!