mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 15:47:36 +02:00
identity: disable session refresh for idp token sessions, fix query cache invalidation (#5495)
This commit is contained in:
parent
ff127e61f9
commit
a9e26b155d
7 changed files with 59 additions and 31 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue