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:
parent
e293dddef4
commit
7ca6d8df13
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue