mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-30 17:37:25 +02:00
authenticate: fix wrong condition checking in VerifySession (#1146)
The code checks session client not nil, but using databroker client in the body instead.
This commit is contained in:
parent
bec908b9af
commit
fd544b7072
3 changed files with 21 additions and 1 deletions
|
@ -137,7 +137,7 @@ func (a *Authenticate) VerifySession(next http.Handler) http.Handler {
|
|||
return a.reauthenticateOrFail(w, r, err)
|
||||
}
|
||||
|
||||
if a.sessionClient != nil {
|
||||
if a.dataBrokerClient != nil {
|
||||
_, err = session.Get(ctx, a.dataBrokerClient, sessionState.ID)
|
||||
if err != nil {
|
||||
log.FromRequest(r).Info().Err(err).Str("id", sessionState.ID).Msg("authenticate: session not found in databroker")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue