From 7ca6d8df135a9ac504eb2cc74c0f7909ca5d99d5 Mon Sep 17 00:00:00 2001 From: celesteormaechea <49885583+celesteormaechea@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:26:37 +1200 Subject: [PATCH] Allow IdP to return 204 IdP returns a 204 NO CONTENT, which I can see matches an expected response code based on the OIDC specs (https://openid.net/specs/openid-connect-backchannel-1_0.html#BCResponse) --- oauthproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauthproxy.go b/oauthproxy.go index 5a237ead..99814233 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -779,7 +779,7 @@ func (p *OAuthProxy) backendLogout(rw http.ResponseWriter, req *http.Request) { } defer resp.Body.Close() - if resp.StatusCode != 200 { + if resp.StatusCode != 200 && resp.StatusCode != 204 { logger.Errorf("error while calling backend logout url, returned error code %v", resp.StatusCode) } }