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

oidc auth requests http instead of https #154

Open
panoptikum opened this issue Sep 10, 2024 · 1 comment
Open

oidc auth requests http instead of https #154

panoptikum opened this issue Sep 10, 2024 · 1 comment

Comments

@panoptikum
Copy link

Hello Folks,

Thank you for this great extension to dash.

I have just deployed an app to Azure App Service and it generally works well. The last thing that I have added is to integrated (Azure Entra/AD) as authentication method. It seems to work in general, but for some reason even when I type in https://{appname}.{region}.azurewebsites.net the auth module requests a redirect_uri with http instead of https (see screenshot below). The AD administration team of course wants me to use https and I myself want that as well.
screenshot_http_requested

Every app deployed on Azure App Service has a certificate/ssl/https on board and should be usable. At least that's my understanding. Does someone have a hint what I can do about this?

I currently start the server as following:

if __name__ == '__main__':
    app.run_server(host='0.0.0.0', port=int(os.environ.get('PORT', 8050)))

Any help is much appreciated.

Have a good day

@olivier-lacroix
Copy link

You can use the force_https parameter. This typically happens because the HTTPS termination is located upstream of your server.

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