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

Flask dance with azure app service & front door #434

Open
fbomb111 opened this issue Apr 11, 2024 · 0 comments
Open

Flask dance with azure app service & front door #434

fbomb111 opened this issue Apr 11, 2024 · 0 comments

Comments

@fbomb111
Copy link

I have a flask app hosted at https://.azurewebsites.com. I've added the azure front door service which maps that url to mycustomdomain.com

I have a GitHub app and I tried to register the callback url as mycustomdomain.com. But then I get a uri mismatch. Looking at the error, it still thinks the callback should be .azurewebsites.com. I think it has something to do with the flask SERVER_NAME env variable, though I am not sure. If I try manually setting this variable I get issues with my app starting up.

I also tried overriding various parameters in the make_github_blueprint call, namely redirect_url and authorized_url, but these either cause errors or the urls are not found. I can retry those and post specific errors if it helps.

I did get this to finally work by setting the callback url in GitHub to .azurewebsites.com, but that doesn't seem ideal, as it's a specific server instead of a pool of servers.

Would like to know if you've encountered an issue like this before and if you have advice. Thanks for the help!

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

1 participant