Merge pull request #1908 from yashsinghcodes/nightly

change logic_sso handle function as cloud
This commit is contained in:
Yash Singh
2025-12-19 16:32:24 +05:30
committed by GitHub
+2 -2
View File
@@ -1312,7 +1312,7 @@ func checkAdminLogin(resp http.ResponseWriter, request *http.Request) {
// Should run calculations // Should run calculations
if len(org.SSOConfig.OpenIdAuthorization) > 0 { if len(org.SSOConfig.OpenIdAuthorization) > 0 {
baseSSOUrl, err = shuffle.GetOpenIdUrl(request, *org, user, "login") baseSSOUrl = shuffle.GetOpenIdUrl(request, *org)
if err != nil { if err != nil {
log.Printf("[ERROR] Failed getting OpenID URL for org %s: %s", org.Name, err) log.Printf("[ERROR] Failed getting OpenID URL for org %s: %s", org.Name, err)
} }
@@ -5660,7 +5660,7 @@ func initHandlers() {
// Docker orborus specific - downloads an image // Docker orborus specific - downloads an image
r.HandleFunc("/api/v1/get_docker_image", getDockerImage).Methods("POST", "GET", "OPTIONS") r.HandleFunc("/api/v1/get_docker_image", getDockerImage).Methods("POST", "GET", "OPTIONS")
r.HandleFunc("/api/v1/login_sso", shuffle.HandleSSO).Methods("GET", "POST", "OPTIONS") r.HandleFunc("/api/v1/login_sso", shuffle.HandleSAML).Methods("GET", "POST", "OPTIONS")
r.HandleFunc("/api/v1/login_openid", shuffle.HandleOpenId).Methods("GET", "POST", "OPTIONS") r.HandleFunc("/api/v1/login_openid", shuffle.HandleOpenId).Methods("GET", "POST", "OPTIONS")
// Important for email, IDS etc. Create this by: // Important for email, IDS etc. Create this by: