diff --git a/internal/pkg/sessions/session_state_test.go b/internal/pkg/sessions/session_state_test.go index 6b2ef512..adcdfe58 100644 --- a/internal/pkg/sessions/session_state_test.go +++ b/internal/pkg/sessions/session_state_test.go @@ -80,5 +80,4 @@ func TestSessionStateExpirations(t *testing.T) { if !session.IsWithinGracePeriod(3 * time.Minute) { t.Errorf("expected session to be inside of grace period") } - } diff --git a/internal/proxy/oauthproxy.go b/internal/proxy/oauthproxy.go index edbc1cf2..8a8ba4ed 100644 --- a/internal/proxy/oauthproxy.go +++ b/internal/proxy/oauthproxy.go @@ -811,7 +811,7 @@ func (p *OAuthProxy) Authenticate(rw http.ResponseWriter, req *http.Request) (er case providers.ErrAuthProviderUnavailable: tags = append(tags, "action:refresh_session", "error:validation_failed") p.StatsdClient.Incr("provider_error_fallback", tags, 1.0) - session.RefreshDeadline = sessions.ExtendDeadline(p.provider.Data().SessionValidTTL) + session.ValidDeadline = sessions.ExtendDeadline(p.provider.Data().SessionValidTTL) default: return ErrUserNotAuthorized }