pomerium/internal/identity/manager
Kenneth Jenkins 1d2c525b1a
identity: rework session refresh error handling (#4638)
Currently, if a temporary error occurs while attempting to refresh an
OAuth2 token, the identity manager won't schedule another attempt.

Instead, update the session refresh logic so that it will retry after
temporary errors. Extract the bulk of this logic into a separate method
that returns a boolean indicating whether to schedule another refresh.

Update the unit test to simulate a temporary error during OAuth2 token
refresh.
2023-10-24 15:44:51 -07:00
..
config.go move directory providers (#3633) 2022-11-03 11:33:56 -06:00
data.go identity: preserve session refresh schedule (#4633) 2023-10-24 14:46:33 -07:00
data_test.go grpc: remove ptypes references (#3078) 2022-02-24 08:37:59 -07:00
manager.go identity: rework session refresh error handling (#4638) 2023-10-24 15:44:51 -07:00
manager_test.go identity: rework session refresh error handling (#4638) 2023-10-24 15:44:51 -07:00
misc.go databroker: store issued at timestamp with session (#2173) 2021-05-04 10:09:14 -06:00
sync.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00