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

@ -105,11 +105,12 @@ func (a *Authorize) loadSession(
}
// invalidate cache
for _, record := range records {
storage.GetQuerier(ctx).InvalidateCache(ctx, &databroker.QueryRequest{
q := &databroker.QueryRequest{
Type: record.GetType(),
Query: record.GetId(),
Limit: 1,
})
}
q.SetFilterByIDOrIndex(record.GetId())
storage.GetQuerier(ctx).InvalidateCache(ctx, q)
}
return nil
},