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
// this is the source url that initiated the login request
40
27
redirectUri:=constants.GetDefaultSiteURL()
41
28
ctx:=context.Background()
42
29
43
-
_, err=ah.Signoz.Licensing.GetActive(ctx, orgID)
44
-
iferr!=nil {
45
-
zap.L().Error("[receiveSAML] sso requested but feature unavailable in org domain")
46
-
http.Redirect(w, r, fmt.Sprintf("%s?ssoerror=%s", redirectUri, "feature unavailable, please upgrade your billing plan to access this feature"), http.StatusMovedPermanently)
47
-
return
48
-
}
49
-
50
-
err=r.ParseForm()
30
+
err:=r.ParseForm()
51
31
iferr!=nil {
52
32
zap.L().Error("[receiveSAML] failed to process response - invalid response from IDP", zap.Error(err), zap.Any("request", r))
zap.L().Error("[receiveSAML] sso requested but feature unavailable in org domain")
68
+
http.Redirect(w, r, fmt.Sprintf("%s?ssoerror=%s", redirectUri, "feature unavailable, please upgrade your billing plan to access this feature"), http.StatusMovedPermanently)
69
+
return
70
+
}
71
+
79
72
sp, err:=domain.PrepareSamlRequest(parsedState)
80
73
iferr!=nil {
81
74
zap.L().Error("[receiveSAML] failed to prepare saml request for domain", zap.String("domain", domain.String()), zap.Error(err))
0 commit comments