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

golang-jwt / jwt / 16000167377
70%

Build:
DEFAULT BRANCH: main
Ran 01 Jul 2025 01:05PM UTC
Jobs 1
Files 24
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

01 Jul 2025 01:04PM UTC coverage: 70.086% (-1.3%) from 71.408%
16000167377

push

github

web-flow
Fix bug in validation of multiple audiences (#441)

* Fix bug in validation of multiple audiences

In a situation where multiple audiences are validated by the
validator, the order of evaluation of the for-range loop
affects the result.

If we produce matches such as:

```
{
  "example.org": true,
  "example.com": false,
}
```

and we configured the validator to expect a single match on
audience, the code would either:

1. produce "token has invalid audience" if "example.org" was
evaluated first

2. produce a passing result if "example.com" was evaluated first

This commit fixes this bug, and adds a suite of tests as well
as regression tests to prevent this issue in future.

* Adding three more test cases to be sure

* Removing required alltogether form verifyAudience

* Removing required

---------

Co-authored-by: Christian Banse <oxisto@aybaze.com>

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

18 existing lines in 1 file now uncovered.

977 of 1394 relevant lines covered (70.09%)

15.23 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
18
0.0
-46.15% test/helpers.go
Jobs
ID Job ID Ran Files Coverage
1 16000167377.1 01 Jul 2025 01:05PM UTC 24
70.09
GitHub Action Run
Source Files on build 16000167377
  • Tree
  • List 24
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16000167377
  • d83e545c on github
  • Prev Build on main (#15622608740)
  • Next Build on main (#16307270073)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc