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

go-pkgz / auth / 45453160493
89%

Build:
DEFAULT BRANCH: master
Ran 24 Nov 2026 05:53PM 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

24 Nov 2026 05:51PM UTC coverage: 88.096% (+0.2%) from 87.855%
45453160493

push

github

umputun
Refuse an Apple login when the id_token has no usable sub

The Apple callback built the user id from the sub claim of the id_token
without checking it. A null or non-string sub caused a panic in the
mapper. A missing sub left the id empty, and parseUserData panicked on
it when the user form field was absent or not valid JSON. An empty sub
hashed an empty string, so every such login became the same user. The
signature, issuer and audience are checked before that point, so only a
token Apple issued for this client could trigger it.

In both modules the callback now requires sub to be a non-empty string
and otherwise answers 403 "invalid id_token" before the mapper runs,
without issuing a session. Ids of existing users do not change.

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

3545 of 4024 relevant lines covered (88.1%)

14.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45453160493.1 24 Nov 2026 05:53PM UTC 25
88.1
GitHub Action Run
Source Files on build 45453160493
  • Tree
  • List 25
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 901265a2 on github
  • Prev Build on master (#45453113912)
  • Next Build on master (#45453594397)
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