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

square / go-jose
92%
master: 90%

Build:
Build:
LAST BUILD BRANCH: unmarshal_number_to_int64
DEFAULT BRANCH: master
Repo Added 19 Dec 2014 06:58AM UTC
Files 18
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

LAST BUILD ON BRANCH cs/fix-142
branch: cs/fix-142
CHANGE BRANCH
x
Reset
  • cs/fix-142
  • anthonybishopric-example-options
  • cherry-pick-pr306
  • cherry-pick-pr309
  • cs/1.10-fix
  • cs/1.8-9
  • cs/add-dump-cmd
  • cs/add-jose-util-readme
  • cs/add-verify
  • cs/better-multi
  • cs/better-test-coverage
  • cs/bug-bounty
  • cs/case-insensitive-json
  • cs/detached-verify
  • cs/drop-1.7
  • cs/dump-expand
  • cs/ed25519-jwk-fix
  • cs/embed-jwk-doc
  • cs/extra-tests
  • cs/fix-100
  • cs/fix-228
  • cs/fix-85
  • cs/fix-build-on-tip
  • cs/fix-coverage
  • cs/fix-expand
  • cs/fix-expiry-zero-time
  • cs/fix-invalid-curve-panic
  • cs/fix-issue-60
  • cs/fix-zero-padding
  • cs/fixes
  • cs/flaky-tests
  • cs/gitcookies
  • cs/go.mod
  • cs/go1.10
  • cs/go15-ci
  • cs/issue-155
  • cs/issue-182
  • cs/issue-204
  • cs/issue-206
  • cs/jose-util
  • cs/jose-util-tests
  • cs/jws-panic
  • cs/kingpin
  • cs/oct-kid-jwe
  • cs/readme-gopkg
  • cs/reject-duplicate-keys
  • cs/reject-embed-hmac
  • cs/rm-std-json
  • cs/test-fix
  • cs/unicode-tests
  • cs/update-readme
  • cs/update-references
  • cs/v1-buffer-size-check
  • cs/v1-import
  • cs/v1-merged-fixes
  • cs/v1-nil-protected-fix
  • cs/v1-null-alg-fix
  • cs/v1/issue-189
  • cs/v2
  • cs/v2-buffer-size-check
  • cs/v2-doc
  • cs/v2-merged-fixes
  • cs/v2-nil-protected-fix
  • cs/v2-null-alg-fix
  • cs/v2/issue-189
  • cs/versioning
  • cs/x5c
  • cs/x5u-x5t
  • cs/zero-pad
  • csstaub-patch-1
  • dependabot/go_modules/github.com/google/go-cmp-0.4.1
  • dependabot/go_modules/github.com/google/go-cmp-0.5.0
  • dependabot/go_modules/github.com/google/go-cmp-0.5.1
  • dependabot/go_modules/github.com/google/go-cmp-0.5.2
  • dependabot/go_modules/github.com/stretchr/testify-1.4.0
  • dependabot/go_modules/github.com/stretchr/testify-1.5.0
  • dependabot/go_modules/github.com/stretchr/testify-1.5.1
  • dependabot/go_modules/github.com/stretchr/testify-1.6.0
  • dependabot/go_modules/github.com/stretchr/testify-1.6.1
  • lestrrat-master
  • master
  • mbyczkowski/cleanup-travis-cfg
  • mbyczkowski/v2-304-backport
  • mbyczkowski/v2-cherry-picks
  • mbyczkowski/v3-cherry-picks
  • mmc/CLA
  • move-ed25519
  • opaque-key-enc-dec
  • revert-63-optional-embed-jwk
  • shaxbee-v2
  • v1
  • v1.0
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.0.5
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v2
  • v2.0.0
  • v2.1.0
  • v2.1.1
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.1.6
  • v2.1.7
  • v2.1.8
  • v2.1.9
  • v2.2.0
  • v2.2.1
  • v2.2.2
  • v2.3.0
  • v2.3.1
  • v2.4.0
  • v2.4.1
  • v2.5.0
  • v2.5.1

pending completion
504

push

travis-ci

csstaub
Preserve integers when normalizing JWT claims (fixes #142)

We normalize claims for tokens given to us in the builder by marshaling
and then unmarshaling as a JSON object. However, because JSON officially
only supports floating-point numbers, this loses precision for integers
embedded in structs. We switch to using json.Decoder (with UseNumber
option) to decode numbers into json.Number, which preserves the precise
value for both integers and floats.

2372 of 2581 relevant lines covered (91.9%)

971.24 hits per line

Relevant lines Covered
Build:
Build:
2581 RELEVANT LINES 2372 COVERED LINES
971.24 HITS PER LINE
Source Files on cs/fix-142
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
504 cs/fix-142 Preserve integers when normalizing JWT claims (fixes #142) We normalize claims for tokens given to us in the builder by marshaling and then unmarshaling as a JSON object. However, because JSON officially only supports floating-point numbers, this... push 24 Mar 2017 12:59AM UTC csstaub travis-ci pending completion  
See All Builds (825)
  • Repo on GitHub
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