Browse Source

Fixing redirect_url for Production and Dev/Staging environment

Prakash Ranade 1 year ago
parent
commit
7d8961fd6d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      desktop/libs/libsaml/src/libsaml/conf.py

+ 6 - 6
desktop/libs/libsaml/src/libsaml/conf.py

@@ -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