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

hyperscale-stack / security / 32661594570
92%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2026 07:36PM UTC
Jobs 1
Files 93
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

23 Aug 2026 07:33PM UTC coverage: 91.755% (+0.07%) from 91.69%
32661594570

push

github

euskadi31
feat(oauth2): add an error hook so server_error causes are observable

An RFC 6749 §5.2 response carries a code, a description and a URI — never
the cause. A server_error therefore reached the client as an opaque 500 and
was dropped everywhere else, leaving an operator with nothing to diagnose.
RFC 7009 §2.2 made it worse on /revoke: a failed revocation still answers
200 OK, so the failure was unobservable too.

ServerConfig.OnError (type ErrorHook) is called with the normalized *Error
envelope — cause intact — at the point the server decides on its answer:
every RFC 6749 §5.2 body, every /authorize redirect, the pre-redirect
refusals answered with a bare 400, and the best-effort revocations /revoke
swallows. grant.Config.OnError does the same for the family revocation a
grant swallows during BCP §8.10.3 reuse detection.

The hook is purely observational — no response, status code or redirect
changes. Refs #63.

57 of 70 new or added lines in 8 files covered. (81.43%)

3906 of 4257 relevant lines covered (91.75%)

12.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.89
0.95% oauth2/authorize_endpoint.go
4
82.46
-0.15% oauth2/revoke_endpoint.go
2
84.85
0.0% oauth2/introspect_endpoint.go
1
88.12
0.24% oauth2/token_endpoint.go
Jobs
ID Job ID Ran Files Coverage
1 32661594570.1 23 Aug 2026 07:36PM UTC 93
91.75
GitHub Action Run
Source Files on build 32661594570
  • Tree
  • List 93
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 18549e4d on github
  • Prev Build on master (#32005623718)
  • Next Build on master (#32661997129)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc