mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-08 17:37:01 +00:00
fix: explicitly set status response header for front-channel logout
Co-Authored-By: Morten Lied Johansen <morten.lied.johansen@nav.no> Co-Authored-By: Sindre Rødseth Hansen <sindre.rodseth.hansen@nav.no>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user