Skip to content

Commit

Permalink
Fix it (#3882)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranade1 authored Nov 15, 2024
1 parent b1d5856 commit e9b6a45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions desktop/libs/libsaml/src/libsaml/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,15 @@ def config_validator(user):
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"
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):
# 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):
# Production environment
redirect_url = "https://sso.cloudera.com/bin/services/support/api/public/logout"

return redirect_url

0 comments on commit e9b6a45

Please sign in to comment.