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

supabase / auth / 22579487526
69%

Build:
DEFAULT BRANCH: master
Ran 02 Mar 2026 02:11PM UTC
Jobs 1
Files 177
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

02 Mar 2026 02:05PM UTC coverage: 68.741% (-0.007%) from 68.748%
22579487526

push

github

web-flow
feat: cache OIDC discovery documents for providers (#2389)

## Summary
- Add `OIDCProviderCache` with TTL-based expiry, singleflight dedup, and
invalidation support
- Wire cache through all OIDC-based providers (Apple, Azure, Google,
LinkedIn OIDC, Vercel Marketplace, custom OIDC) and the ID token grant
flow
- Make TTL configurable via `GOTRUE_EXTERNAL_OIDC_PROVIDER_CACHE_TTL`
(default: `1h`)


This caches the `oidc.Provider` structs, which avoids re-fetching the
OIDC discovery document (`.well-known/openid-configuration`) on every
request. JWKS caching is handled separately by the `go-oidc` library, it
lazy-loads the key set on the first `Verify` call and manages its own
cache internally.

  ## Test plan
- [x] Unit tests for cache hit/miss, TTL expiry, singleflight dedup,
invalidation, clear, multiple issuers, error handling
- [ ] Verify with live OIDC providers (Apple, Google, custom oidc
providers etc.)

100 of 186 new or added lines in 13 files covered. (53.76%)

3 existing lines in 1 file now uncovered.

15805 of 22992 relevant lines covered (68.74%)

78.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
17.52
0.0% internal/api/token_oidc.go
2
0.0
0.0% internal/api/provider/linkedin_oidc.go
2
0.0
0.0% internal/api/provider/vercel_marketplace.go
3
67.84
-0.1% internal/api/external.go
9
64.05
-4.0% internal/models/custom_oauth_provider.go
69
62.76
-6.99% internal/api/custom_oauth_admin.go

Uncovered Existing Lines

Lines Coverage ∆ File
3
62.76
-6.99% internal/api/custom_oauth_admin.go
Jobs
ID Job ID Ran Files Coverage
1 22579487526.1 02 Mar 2026 02:11PM UTC 177
68.74
GitHub Action Run
Source Files on build 22579487526
  • Tree
  • List 177
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 40d07b5f on github
  • Prev Build on master (#22579295790)
  • Delete
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