Skip to content

Commit

Permalink
Merge pull request #543 from bheesham/quickfix-use-preferred-url-scheme
Browse files Browse the repository at this point in the history
redirect_uri used http, so use PREFERRED_URL_SCHEME
  • Loading branch information
bheesham authored Jan 22, 2025
2 parents 02751c6 + f8f5798 commit b2f3410
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dashboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,7 @@ def logout():
# manual logout (in a non-breaking way).
app.logger.info("Redirecting to v2/logout")
# Build up the logout and signout URLs
signout_url = "http"
if request.is_secure:
signout_url += "s"
signout_url += f"://{app.config["SERVER_NAME"]}{url_for("signout")}"
signout_url = f"{app.config["PREFERRED_URL_SCHEME"]}://{app.config["SERVER_NAME"]}{url_for("signout")}"
logout_url = (
f"https://{oidc_config.OIDC_DOMAIN}/v2/logout?client_id={oidc_config.OIDC_CLIENT_ID}&returnTo={signout_url}"
)
Expand Down

0 comments on commit b2f3410

Please sign in to comment.