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

FIWARE / VCVerifier / 32025629508
62%
main: 62%

Build:
Build:
LAST BUILD BRANCH: fix/vp-token-base64-padding
DEFAULT BRANCH: main
Ran 17 Aug 2026 11:36AM UTC
Jobs 1
Files 58
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

17 Aug 2026 11:04AM UTC coverage: 61.357% (+0.1%) from 61.241%
32025629508

Pull #114

github

vramperez
fix(verifier): accept padded base64 vp_token and stop panicking on malformed VPs

decodeVpString only decoded raw(unpadded) base64url, so a client emitting
padded base64 - java's Base64.getUrlEncoder() or python's b64encode() - made
the decode fail and the raw, still-encoded string was passed on. That string
matches no DCQL shape and reaches ParseWithSdJwt, where strings.Split(token,
".")[1] panics on a string without a '.', turning a malformed request into an
empty HTTP 500 instead of a 400.

Accept all four base64 variants in decodeVpString. Tokens that are not base64
at all(compact JWTs, SD-JWTs, plain json dcql responses) are unaffected, since
'.', '~', '{', '"' and ':' are part of no base64 alphabet.

ParseWithSdJwt now reuses the existing extractJWTPayload helper, which checks
the segment count and no longer discards the decode error. Its three remaining
unchecked type assertions - the holder, the verifiableCredential array and its
entries - are guarded as well, since they panic on the same unauthenticated
endpoint.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Pull Request #114: fix(verifier): accept padded base64 vp_token and stop panicking on malformed VPs

43 of 50 new or added lines in 2 files covered. (86.0%)

3 existing lines in 1 file now uncovered.

4903 of 7991 relevant lines covered (61.36%)

0.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
54.23
0.07% openapi/api_api.go

Coverage Regressions

Lines Coverage ∆ File
3
58.86
2.16% verifier/presentation_parser.go
Jobs
ID Job ID Ran Files Coverage
1 32025629508.1 17 Aug 2026 11:36AM UTC 58
61.36
GitHub Action Run
Source Files on build 32025629508
  • Tree
  • List 58
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #114
  • PR Base - main (#31164168937)
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