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

silvermine / apigateway-utils / 39
99%

Build:
DEFAULT BRANCH: master
Ran 25 Jan 2018 02:56AM UTC
Jobs 2
Files 7
Run time 8s
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

pending completion
39

Pull #7

travis-ci

web-flow
BREAKING: Expose JWT validation, change validateAuthorizationHeader

This commit exposes JWT validation as a utility, but in doing so also introduces a
**breaking change** that allows `JWTSecuredRequest.validateAuthorizationHeader` to return
multiple errors.

The format before was:

```
{ isValid: true }
// or:
{ isValid: false, msg: 'User-visible message', err: 'More details for developer' }
```

The format now is:

```
{ errors: [], token: {} }; // (token is the decoded JWT object)
// or:
{
   errors: [ { msg: 'User-visible message', err: 'More details for developer' } ],
   token: {},
}
```

In this new format: there may be multiple errors; Also, token is the decoded JWT, and is
undefined if the JWT could not be decoded.
Pull Request #7: BREAKING: Expose JWT validation, change validateAuthorizationHeader

33 of 33 new or added lines in 2 files covered. (100.0%)

181 of 181 relevant lines covered (100.0%)

50.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39.1 25 Jan 2018 02:56AM UTC 0
100.0
Travis Job 39.1
2 39.2 25 Jan 2018 02:56AM UTC 0
100.0
Travis Job 39.2
Source Files on build 39
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #39
  • Pull Request #7
  • PR Base - master (#35)
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

© 2025 Coveralls, Inc