From 77c57cc4a5bb8168687036d85568ff53b99e849e Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Fri, 24 Jul 2026 21:45:38 +0000 Subject: [PATCH] Drop redundant SAML auth error helper comment Signed-off-by: Cursor Agent Co-authored-by: Bryan FRIMIN --- pkg/server/api/connect/v1/auth_error.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/server/api/connect/v1/auth_error.go b/pkg/server/api/connect/v1/auth_error.go index 253f3789a..4122946ec 100644 --- a/pkg/server/api/connect/v1/auth_error.go +++ b/pkg/server/api/connect/v1/auth_error.go @@ -50,9 +50,6 @@ func redirectAuthError(w http.ResponseWriter, r *http.Request, code string) { http.Redirect(w, r, redirectURL.String(), http.StatusFound) } -// authErrorCodeFromSAML maps known SAML assertion failures to a browser error -// code. Specific SAML reasons stay server-side only; users see a generic -// authentication failure to avoid leaking org/account state. func authErrorCodeFromSAML(err error) (string, bool) { if _, ok := errors.AsType[*saml.ErrSAMLDisabled](err); ok { return authErrorAuthenticationFailed, true