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

codozor / authk / 19832131598
53%
main: 49%

Build:
Build:
LAST BUILD BRANCH: feat/id-token
DEFAULT BRANCH: main
Ran 01 Dec 2025 05:48PM UTC
Jobs 1
Files 8
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

01 Dec 2025 05:46PM UTC coverage: 39.915% (-0.5%) from 40.417%
19832131598

Pull #6

github

SebastienLaurent-CF
✨ feat(oidc): Refactor OIDC client with golang.org/x/oauth2 and go-oidc

This commit refactors the `internal/oidc` package to leverage the
`golang.org/x/oauth2` and `github.com/coreos/go-oidc` libraries.

The manual implementation of OAuth2/OIDC flows, including discovery,
token requests, and JSON parsing, has been replaced by robust,
industry-standard libraries.

Key changes include:
- Replaced manual OIDC discovery with `oidc.NewProvider`.
- Updated token retrieval (password and client credentials grants)
  to use `oauth2.Config` and `clientcredentials.Config`.
- Refactored token refreshing to use `oauth2.TokenSource` mechanisms.
- Eliminated custom `TokenResponse` struct in favor of `oauth2.Token`.
- Enhanced test suite (`internal/oidc/client_test.go`) to reflect new
  implementation and ensure compatibility with `go-oidc` expectations.
- Updated `cmd/authk/root.go` to use `token.Expiry` for refresh
  timing, removing custom `ExpiresIn` logic.

This refactoring significantly improves security (due to strict
validation of OIDC specs by go-oidc), maintainability, and reduces
the amount of custom code.
Pull Request #6: ✨ feat(oidc): Refactor OIDC client with golang.org/x/oauth2 and go-oidc

48 of 74 new or added lines in 2 files covered. (64.86%)

2 existing lines in 2 files now uncovered.

188 of 471 relevant lines covered (39.92%)

1.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
0.0
0.0% cmd/authk/root.go
17
77.17
3.84% internal/oidc/client.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% cmd/authk/root.go
1
77.17
3.84% internal/oidc/client.go
Jobs
ID Job ID Ran Files Coverage
1 19832131598.1 01 Dec 2025 05:48PM UTC 8
39.92
GitHub Action Run
Source Files on build 19832131598
  • Tree
  • List 8
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #6
  • PR Base - main (#19803261734)
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