FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    FusionAuth stopped making the callback to authorized URL after adding gate

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    847
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marco 0
      last edited by

      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!

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @marco 0
        last edited by

        @marco-0 Couldn't you add some logic to the redirect page and send the user to the correct one based on the situation?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post