Log only unexpected auth callback failures
Expected refusals already have a dedicated auth error page, so warn logs just add noise. Keep Error logging for generic authentication failures that still need investigation. 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
4e895df54f
commit
6cce9b0a6e
@@ -61,7 +61,6 @@ func (h *SAMLHandler) renderInternalServerError(w http.ResponseWriter) {
|
||||
|
||||
func (h *SAMLHandler) renderAssertionError(w http.ResponseWriter, r *http.Request, err error) {
|
||||
if code, ok := authErrorCodeFromSAML(err); ok {
|
||||
h.logger.WarnCtx(r.Context(), "SAML login rejected", log.Error(err), log.String("error_code", code))
|
||||
redirectAuthError(w, r, code)
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user