mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 18:07:17 +02:00
authorize: fix user caching (#3734)
This commit is contained in:
parent
20d4a7520e
commit
e1f881f82b
3 changed files with 58 additions and 3 deletions
|
@ -90,12 +90,11 @@ func (a *Authorize) getDataBrokerSessionOrServiceAccount(
|
|||
func (a *Authorize) getDataBrokerUser(
|
||||
ctx context.Context,
|
||||
userID string,
|
||||
dataBrokerRecordVersion uint64,
|
||||
) (*user.User, error) {
|
||||
ctx, span := trace.StartSpan(ctx, "authorize.getDataBrokerUser")
|
||||
defer span.End()
|
||||
|
||||
record, err := getDataBrokerRecord(ctx, grpcutil.GetTypeURL(new(user.User)), userID, dataBrokerRecordVersion)
|
||||
record, err := getDataBrokerRecord(ctx, grpcutil.GetTypeURL(new(user.User)), userID, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue