Redirect Uri Pattern question

I have pretty much everything working that I want but when I log into frame io via my staging site it redirects to my production site.

Redirect URI

https://dashboard.mydomain.net/api/auth/callback/frameio

Redirect URI Pattern

https://localhost:3000/api/auth/callback/frameio|https://staging-dashboard\\.mydomain\\.net/api/auth/callback/frameio|https://dashboard\\.mydomain\\.net/api/auth/callback/frameio

The redirect works fine for localhost, it’s just staging gets redirected to production instead.

Any ideas?

Thanks!

Hi @GregW!

It looks like you’re using | to separate your patterns, I’d try switching to a comma-separated list instead:

https://localhost:3000/api/auth/callback/frameio,https://staging-dashboard\\.mydomain\\.net/api/auth/callback/frameio,https://dashboard\\.mydomain\\.net/api/auth/callback/frameio

Related docs: https://developer.adobe.com/developer-console/docs/guides/authentication/UserAuthentication/implementation#redirect-uri-pattern

If that still doesn’t resolve it, I’d check the actual redirect_uri being sent from your staging environment and make sure it is matching that pattern exactly.

Hey @rosiec , yeah that done it! I don’t know why I didn’t think of that as that it’s the norm. I got stuck thinking it wanted regex due to having to escape the full stops. Thanks for the help!

1 Like