Skip to content

Commit

Permalink
Do not clear cookies when bearer token does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kovoy committed Jul 12, 2019
1 parent e799452 commit 3e2a428
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/web/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1999,8 +1999,6 @@ func (h *Handler) WithClusterAuth(fn ClusterHandler) httprouter.Handle {
ctx, err := h.AuthenticateRequest(w, r, true)
if err != nil {
log.Info(err)
// clear session just in case if the authentication request is not valid
ClearSession(w)
return nil, trace.Wrap(err)
}
siteName := p.ByName("site")
Expand Down

0 comments on commit 3e2a428

Please sign in to comment.