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

pomerium / pomerium / 21043492763
46%

Build:
DEFAULT BRANCH: main
Ran 15 Jan 2026 07:42PM UTC
Jobs 1
Files 605
Run time 1min
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

15 Jan 2026 07:21PM UTC coverage: 52.74% (-0.1%) from 52.845%
21043492763

push

github

web-flow
mockidp: add OAuth refresh token support (#6048)

## Summary

The mock IDP previously returned the same encoded state for both
access_token and refresh_token, which doesn't match OAuth behavior. This
change adds refresh token support:

- Add refresh token storage with thread-safe access
- Generate opaque UUID-based refresh tokens (30-day lifetime)
- Handle `grant_type=refresh_token` in the token endpoint
- Add `expires_in` field to token responses (1 hour for access tokens)
- Implement refresh token validation and expiration
- Support refresh token rotation (new token issued on each refresh)

## Related issues

<!-- none -->

## User Explanation

<!-- No user-facing changes - this is a test utility -->

## Checklist

- [ ] reference any related issues
- [ ] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [ ] ready for review

0 of 64 new or added lines in 1 file covered. (0.0%)

29 existing lines in 8 files now uncovered.

29837 of 56574 relevant lines covered (52.74%)

125.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
64
0.0
0.0% internal/testutil/mockidp/mockidp.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/testutil/mockidp/mockidp.go
2
92.78
-1.11% internal/fileutil/watcher.go
2
89.19
-5.41% pkg/fanout/fanout.go
2
90.91
-3.64% pkg/fanout/receive.go
2
88.18
-0.47% pkg/storage/postgres/postgres.go
3
95.83
-3.13% pkg/identity/manager/schedulers.go
4
77.03
-2.7% pkg/grpcutil/client_manager.go
13
85.78
-6.37% config/config_source.go
Jobs
ID Job ID Ran Files Coverage
1 21043492763.1 15 Jan 2026 07:41PM UTC 605
52.74
GitHub Action Run
Source Files on build 21043492763
  • Tree
  • List 605
  • Changed 9
  • Source Changed 1
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21043492763
  • 50675c2f on github
  • Prev Build on main (#21013409523)
  • Next Build on main (#21049863658)
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