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)
This commit is contained in:
celesteormaechea 2024-09-10 12:26:37 +12:00 committed by GitHub
parent e293dddef4
commit 7ca6d8df13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}