Skip to content

Commit 862fc9d

Browse files
unai-ttxuvjacynycz
authored andcommitted
[PLT-2291] Fix: Handle missing JWT cookie on oauth2-proxy logout
1 parent 0ea2e9f commit 862fc9d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
### 7.12.0-0.4.0 (upcoming)
44

5-
* [PLT-795] Bump oauth2 proxy upstream version to 7.12.0
5+
* [PLT-2291] Fix: Handle missing JWT cookie on oauth2-proxy logout
6+
* [PLT-795] Bump oauth2 proxy upstream version to 7.11.0
67

78
### 7.5.1-0.3.0 (2023-11-24)
89

pkg/sessions/jwt/jwt_session_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (s *SessionStore) sessionFromToken(tokenString string) (*sessions.SessionSt
175175
func (s *SessionStore) Clear(rw http.ResponseWriter, req *http.Request) error {
176176
c, err := req.Cookie(s.Cookie.Name)
177177
if err != nil {
178-
return err
178+
return nil
179179
}
180180
clearCookie := s.makeCookie(req, c.Name, "", time.Hour*-1)
181181
http.SetCookie(rw, clearCookie)

0 commit comments

Comments
 (0)