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

@ -252,6 +252,11 @@ func (mgr *Manager) refreshSessionInternal(
return false
}
if s.GetRefreshDisabled() {
// refresh was explicitly disabled
return false
}
if s.Session == nil || s.Session.OauthToken == nil {
log.Ctx(ctx).Info().
Str("user_id", userID).