Fix bearer Authorization template strip order + nonce constant-time compare (round 45)

This commit is contained in:
2026-08-13 13:02:04 +01:00
parent d6a77d21a9
commit 44af200408
3 changed files with 87 additions and 8 deletions
+1 -1
View File
@@ -233,7 +233,7 @@ func (t *TraefikOidc) handleCallback(rw http.ResponseWriter, req *http.Request,
return
}
if nonceClaim != sessionNonce {
if !constantTimeStringCompare(nonceClaim, sessionNonce) {
t.logger.Error("Nonce claim does not match session nonce during callback")
t.sendErrorResponse(rw, req, "Authentication failed: Nonce mismatch", http.StatusInternalServerError)
return