Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround Auth0 limitations for Netlify deploy previews #183

Open
jamesvclements opened this issue Jul 28, 2018 · 1 comment
Open

Workaround Auth0 limitations for Netlify deploy previews #183

jamesvclements opened this issue Jul 28, 2018 · 1 comment

Comments

@jamesvclements
Copy link
Contributor

Netlify deploys previews of our PRs, at URLs like:

https://deploy-preview-182--bartop-ui.netlify.com/landing

This is sweet. However, Auth0 needs to know about that URL to add it as an Allowed Web Origin.

From their docs:

Please note that the URLs specified for Allowed Web Origins cannot contain wildcards or relative paths after the domain.

So, the auth flow on any deploy previews won't work. I asked in their Gitter:

Hey, the docs state "Please note that the URLs specified for Allowed Web Origins cannot contain wildcards or relative paths after the domain." Is there a workaround for this? We're using Netlify for continous deployment, and they create deploy previews for PRs in the form https://deploy-preview--183-my-app.netlify.com - where the # changes w/ each PR. This means we can't go through the auth flow on any of the deploy previews unless we manually add each deploy preview URL before testing. Thoughts?

We'll see 🤷‍♀️

@dpopp07
Copy link
Collaborator

dpopp07 commented Jul 28, 2018

Hmm, this would be nice to have for sure. If not though, one of the points of dev and staging is to see stuff before it's in production. I feel like this is just like another in between that's nice but not necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants