diff --git a/pkg/router/handler_frontchannellogout.go b/pkg/router/handler_frontchannellogout.go index ebae726..80bc033 100644 --- a/pkg/router/handler_frontchannellogout.go +++ b/pkg/router/handler_frontchannellogout.go @@ -28,4 +28,5 @@ func (h *Handler) FrontChannelLogout(w http.ResponseWriter, r *http.Request) { // Unconditionally destroy all local references to the session. h.deleteCookie(w, h.GetSessionCookieName()) + w.WriteHeader(http.StatusOK) } diff --git a/pkg/router/router_test.go b/pkg/router/router_test.go index c77e71b..167d9e7 100644 --- a/pkg/router/router_test.go +++ b/pkg/router/router_test.go @@ -329,6 +329,8 @@ func TestHandler_FrontChannelLogout(t *testing.T) { req, err = client.Get(frontchannelLogoutURL.String()) assert.NoError(t, err) defer req.Body.Close() + + assert.Equal(t, http.StatusOK, req.StatusCode) } func getCookieFromJar(name string, cookies []*http.Cookie) *http.Cookie {