mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-09-30 11:41:19 +02:00
fix: validation of refreshed sessions using the access_token in the OIDC provider (#1933)
Signed-off-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
@@ -29,8 +29,9 @@ type SessionState struct {
|
||||
PreferredUsername string `msgpack:"pu,omitempty"`
|
||||
|
||||
// Internal helpers, not serialized
|
||||
Clock func() time.Time `msgpack:"-"` // override for time.Now, for testing
|
||||
Lock Lock `msgpack:"-"`
|
||||
Clock func() time.Time `msgpack:"-"` // override for time.Now, for testing
|
||||
Lock Lock `msgpack:"-"`
|
||||
Refreshed bool `msgpack:"-"` // indicates whether the session was refreshed
|
||||
}
|
||||
|
||||
func (s *SessionState) now() time.Time {
|
||||
|
||||
Reference in New Issue
Block a user