Pricing Blog

Redirect Authentication not working

  • knotshell.-1367867564998525060

    knotshell

    2 months ago

    Hello,

    I have followed this documentation:https://docs.nordcraft.com/connecting-data/authentication#use-redirect-authentication

    and set up redirect in the third-party authentication to go to https://mydomain.com/.nordcraft?redirect_to=%2F&access_token=generated_access_token_from_third_party

    However - it lands in a 404 page and there is no access_token stored.

    As a workaround, I set up a formula ON LOAD to: a) capture the acces_token on a dummy page from the URL, b) store it using set session cookie formula and c)call an API to verify the token and d) redirect based on profile verification through an API call if success. This however requires page load and the screen briefly flashes before logging into my app.

    My questiosn are
    1. Am I doing something wrong with the syntax for the redirect authomation?
    2. does this method also verify the token or just store it?
    2. is my workaround still secure?

    thanks for any assistance! I am not technical so any help will be appreciated - getting to learn a TON from ~ nordcraft ~
  • max.kayr-1367880123747143720

    Max

    2 months ago

    1. The documentation is too up to date, maybe 🙂
    the endpoint is still domain.com/.toddle?redirect_to....
  • 2. It will just store it
  • 3. Yes, that this is fine
  • knotshell.-1367881990698827867

    knotshell

    2 months ago

    1. changed it to toddle and that worked!!! thanks so much ! If it stops working, will try switching back to nordcraft 🙂
    2 & 3 - thank you !
  • max.kayr-1367882066771054693

    Max

    2 months ago

    Nice 💪