You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Don't create user if auto-provisioning is disabled
19335
+
if org.SSOConfig.AutoProvision {
19336
+
log.Printf("[INFO] Auto-provisioning is disable for id: %s", org.Id)
19337
+
resp.WriteHeader(401)
19338
+
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Auto-provisioning is disabled for this organization. Please ask your administrator to enable it."}`)))
19339
+
return
19340
+
}
19341
+
19330
19342
log.Printf("[AUDIT] Adding user %s to org %s (%s) through single sign-on", userName, org.Name, org.Id)
//Don't create user if auto-provisioning is disabled
19872
+
if foundOrg.SSOConfig.AutoProvision {
19873
+
log.Printf("[INFO] Auto-provisioning is disable for id: %s", foundOrg.Id)
19874
+
resp.WriteHeader(401)
19875
+
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Auto-provisioning is disabled for this organization. Please ask your administrator to enable it."}`)))
19876
+
return
19877
+
}
19878
+
19859
19879
log.Printf("[AUDIT] Adding user %s to org %s (%s) through single sign-on", userName, foundOrg.Name, foundOrg.Id)
0 commit comments