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

Support customizing OAuth strategy callback url dynamically #66

Open
gregbty opened this issue Nov 24, 2021 · 1 comment
Open

Support customizing OAuth strategy callback url dynamically #66

gregbty opened this issue Nov 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@gregbty
Copy link

gregbty commented Nov 24, 2021

This is similar to #35, but I make use of Netlify's preview deployments which can be accessed via several different endpoints. I don't actually know which endpoint a user has hit until the request is in flight. I'd like to be able to customize the callback url of the OAuth strategy based on the contents of the request (in this specific case I'm using Auth0). I can submit a pull request if desired.

@gregbty gregbty changed the title Support customizing callback url dynamically Support customizing OAuth strategy callback url dynamically Nov 24, 2021
@sergiodxa sergiodxa added the enhancement New feature or request label Dec 14, 2021
@andreisena
Copy link

Hi @gregbty! We are using vercel for deploy previews and we check for the environment variable VERCEL_URL to mount the callback URL. I believe it is possible to do the same on Netlify using the env var DEPLOY_URL.

https://docs.netlify.com/configure-builds/environment-variables/#deploy-urls-and-metadata

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

No branches or pull requests

3 participants