• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pomerium / pomerium / 6615378582
45%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2023 03:24PM UTC
Jobs 1
Files 286
Run time 11s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2023 03:20PM UTC coverage: 63.787% (+0.06%) from 63.732%
6615378582

push

github

web-flow
identity: override TokenSource expiry behavior (#4632)

The current session refresh loop attempts to refresh access tokens when
they are due to expire in less than one minute. However, the code to
perform the refresh relies on a TokenSource from the x/oauth2 package,
which has its own internal 'expiryDelta' threshold, with a default of
10 seconds. As a result, the first four or five attempts to refresh a
particular access token will not actually refresh the token. The refresh
will happen only when the access token is within 10 seconds of expiring.

Instead, before we obtain a new TokenSource, first clear any existing
access token. This causes the TokenSource to consider the token invalid,
triggering a refresh. This should give the refresh loop more control
over when refreshes happen.

Consolidate this logic in a new Refresh() method in the oidc package.
Add unit tests for this new method.

15 of 15 new or added lines in 2 files covered. (100.0%)

14326 of 22459 relevant lines covered (63.79%)

117.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6615378582.1 23 Oct 2023 03:24PM UTC 0
63.79
GitHub Action Run
Source Files on build 6615378582
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6615378582
  • 39a477c5 on github
  • Prev Build on main (#6566475271)
  • Next Build on main (#6629217242)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc