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

go-pkgz / auth / 46088161991
88%
master: 89%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.7.0
DEFAULT BRANCH: master
Ran 28 Nov 2026 12:31AM 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 12:25AM UTC coverage: 88.456% (+0.004%) from 88.452%
46088161991

Pull #349

github

paskal
Limit the OAuth2 access token on avatar fetches to the user info origin

The OAuth2 callback handed the avatar saver the oauth2 client, which adds
the user's access token to every request, so the picture was fetched with
the token from whatever host the picture URL named.

The saver now gets a client that adds the token only to requests for the
scheme, host and port of the provider's user info URL, checked on every
redirect hop; a host with non-ASCII characters never matches. Requests go
through the oauth2 client's base transport and redirect policy, with the
5 second timeout the other providers' avatar clients already use. The
Microsoft Graph photo, which needs the token and is served by the info
host, keeps loading; pictures on CDNs and other hosts are fetched without
the token.
Pull Request #349: Limit the OAuth2 access token on avatar fetches to the user info origin

33 of 37 new or added lines in 1 file covered. (89.19%)

3701 of 4184 relevant lines covered (88.46%)

19.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
83.12
1.07% provider/oauth2.go
Jobs
ID Job ID Ran Files Coverage
1 46088161991.1 28 Nov 2026 12:31AM UTC 25
88.46
GitHub Action Run
Source Files on build 46088161991
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #349
  • PR Base - master (#46083647315)
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