identity: disable session refresh for idp token sessions, fix query cache invalidation (#5495)

This commit is contained in:
Caleb Doxsey 2025-02-24 15:33:23 -07:00 committed by GitHub
parent ff127e61f9
commit a9e26b155d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 59 additions and 31 deletions

View file

@ -225,6 +225,11 @@ func (mgr *Manager) refreshSession(ctx context.Context, sessionID string) {
return
}
if s.GetRefreshDisabled() {
// refresh was explicitly disabled
return
}
if s.GetOauthToken() == nil {
log.Ctx(ctx).Info().
Str("user_id", s.GetUserId()).