Drop redundant SAML auth error helper comment
Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
committed by
Cursor Agent
parent
00ed11e30b
commit
77c57cc4a5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user