Skip to content

Commit

Permalink
fix: error log when RP responds with status code 204 (#3731)
Browse files Browse the repository at this point in the history
  • Loading branch information
SiebelsTim committed Apr 4, 2024
1 parent 4f786c6 commit 153e4b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consent/strategy_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ func (s *DefaultStrategy) executeBackChannelLogout(r *http.Request, subject, sid
}
defer res.Body.Close()

if res.StatusCode != http.StatusOK {
log.WithError(errors.Errorf("expected HTTP status code %d but got %d", http.StatusOK, res.StatusCode)).
if res.StatusCode != http.StatusOK && res.StatusCode != http.StatusNoContent {
log.WithError(errors.Errorf("expected HTTP status code %d or %d but got %d", http.StatusOK, http.StatusNoContent, res.StatusCode)).
Error("Unable to execute OpenID Connect Back-Channel Logout Request")
return
} else {
Expand Down

0 comments on commit 153e4b5

Please sign in to comment.