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

Fixing redirect_url for Production and Dev/Staging environment #3884

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions desktop/libs/libsaml/src/libsaml/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ def get_logout_redirect_url():
# This logic was derived from KNOX.
prod_url = "consoleauth.altus.cloudera.com"
logout_url = CDP_LOGOUT_URL.get()
redirect_url = "https://sso.cloudera.com/bin/services/support/api/public/logout"
redirect_url = "https://sso.cloudera.com/logout"
if prod_url not in CDP_LOGOUT_URL.get():
redirect_url = "https://sso.staging-upgrade.aem.cloudera.com/bin/services/support/api/public/logout"
elif ("cdp.cloudera.com/" not in logout_url and "cloudera.com/" in logout_url and "consoleauth/logout" in logout_url):
redirect_url = "https://sso-stg.cat.cloudera.com/logout"
elif ("cdp.cloudera.com/" not in logout_url and "cloudera.com/consoleauth/logout" in logout_url):
# Dev/Staging environment
redirect_url = "https://sso.staging-upgrade.aem.cloudera.com/bin/services/support/api/public/logout"
elif ("cdp.cloudera.com/" in logout_url and "/consoleauth/logout" in logout_url):
redirect_url = "https://sso-stg.cat.cloudera.com/logout"
elif ("cdp.cloudera.com/consoleauth/logout" in logout_url):
# Production environment
redirect_url = "https://sso.cloudera.com/bin/services/support/api/public/logout"
redirect_url = "https://sso.cloudera.com/logout"

return redirect_url