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

go-pkgz / auth / 46101227619
89%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2026 03:08AM UTC
Jobs 1
Files 25
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

28 Nov 2026 03:06AM UTC coverage: 88.598% (+0.1%) from 88.456%
46101227619

push

github

web-flow
Refuse a cross-origin redirect of the OAuth2 user info request (#350)

* Refuse a cross-origin redirect of the OAuth2 user info request

The oauth2 transport adds the access token to every redirect hop, so a user
info URL answering with a redirect to another host sent the token there. The
info request now uses a copy of the client whose redirect policy runs any
existing CheckRedirect first, keeps the default 10-hop cap when there is none,
and stops at a hop off the scheme, host and port of InfoURL. The login then
fails with 503 and logs only the redirect status, so a signed Location stays
out of the log. The avatar client keeps its own redirect policy.

Also drops the unreachable Transport nil check in avatarClient and the
comments in the avatar tests.

* Keep the redirect URL out of the log at the user info hop cap

With no client redirect policy, the 10-hop cap returned a plain error
before the origin check. Go's HTTP client wraps that error with the raw
Location of the refused hop, and the login handler logs it, so a signed
URL on the hop past the cap reached the log. The cap now stops with the
last redirect response, like the origin refusal, and the login answers
503 with only the status in the log.

The README note on the refused redirects becomes a versioned behaviour
change block, with the HTTP-to-HTTPS case and the xn-- form for redirect
targets.

19 of 19 new or added lines in 1 file covered. (100.0%)

3722 of 4201 relevant lines covered (88.6%)

20.29 hits per line

Jobs
ID Job ID Ran Files Coverage
1 46101227619.1 28 Nov 2026 03:08AM UTC 25
88.6
GitHub Action Run
Source Files on build 46101227619
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fdc52399 on github
  • Prev Build on master (#46090387173)
  • Next Build on master (#46102514917)
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