Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for using JWT fields #741

Merged
merged 1 commit into from
May 16, 2022
Merged

Add example for using JWT fields #741

merged 1 commit into from
May 16, 2022

Conversation

lestrrat
Copy link
Collaborator

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented May 16, 2022

Codecov Report

❗ No coverage uploaded for pull request base (develop/v2@6b1f5fe). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop/v2     #741   +/-   ##
=============================================
  Coverage              ?   71.73%           
=============================================
  Files                 ?       90           
  Lines                 ?     9865           
  Branches              ?        0           
=============================================
  Hits                  ?     7077           
  Misses                ?     1987           
  Partials              ?      801           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b1f5fe...4b7bd93. Read the comment docs.

@lestrrat lestrrat merged commit 9e567a2 into develop/v2 May 16, 2022
@lestrrat lestrrat deleted the jwt-usage-example branch May 16, 2022 07:46
lestrrat added a commit that referenced this pull request May 23, 2022
* Allow escape hatch for those who (incorrectly) use RFC3339 in Numeric Date fields (#735)

* Add the ability to parse RFC3339 dates for NumericDate types

* appease linter

* Tweaks (#737)

* Update go version

* Tweak documentation

* Update Changes

* Tweak doc (#738)

* show jwt.Sign using raw and jwk.Key (#739)

* autodoc updates (#740)

Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

* Add example for using JWT fields (#741)

* fix typo (#742)

* [jwe/v2] Fix possible excessive unpadding for AESCBC (#745)

* Fix possible excessive unpadding for AESCBC

* Update Changes

* Update Changes

* Update Changes

* Update Changes

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>
Co-authored-by: Satoru Kitaguchi <64164948+satorunooshie@users.noreply.github.com>
lestrrat added a commit that referenced this pull request Jun 13, 2022
* Merge develop/v2 for v2.0.0-beta2 (#697)

* disable verification/validation for benchmarking

* Introduce jwk.CachedSet to make the common operation of using cached JWKS easier (#689)

* First round implementing jwk.CachedSet

* Change jwk.Set interface

* appease linter

* add docs

* Fix example code

* fix jwk.Set usage

* Add codecov.yml

* Add more tests

* appease linter

* tweak docs, examples, go versions

* Update deps for go1.18

* run autodoc when mering to develop/v2 (#691)

* Fix autodoc (#692)

* run autodoc when mering to develop/v2

* Create a PR isntead of a push

* Pass token, fix branch name (#693)

* Add a special rule for develop/v* branch (#695)

* autodoc updates (#696)

Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

* Update Changes

* Update Changes

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

* merge develop/v2 (#716)

* Fix typo (#705)

* Merge develop/v2 for v2.0.0-beta2 (#697) (#711)

* disable verification/validation for benchmarking

* Introduce jwk.CachedSet to make the common operation of using cached JWKS easier (#689)

* First round implementing jwk.CachedSet

* Change jwk.Set interface

* appease linter

* add docs

* Fix example code

* fix jwk.Set usage

* Add codecov.yml

* Add more tests

* appease linter

* tweak docs, examples, go versions

* Update deps for go1.18

* run autodoc when mering to develop/v2 (#691)

* Fix autodoc (#692)

* run autodoc when mering to develop/v2

* Create a PR isntead of a push

* Pass token, fix branch name (#693)

* Add a special rule for develop/v* branch (#695)

* autodoc updates (#696)

Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

* Update Changes

* Update Changes

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

* House cleaning (#712)

* house-cleaning and minor optimizations

* accidentally reverted

* Bump github.com/goccy/go-json from 0.9.6 to 0.9.7 (#709)

* Bump github.com/goccy/go-json from 0.9.6 to 0.9.7

Bumps [github.com/goccy/go-json](https://github.com/goccy/go-json) from 0.9.6 to 0.9.7.
- [Release notes](https://github.com/goccy/go-json/releases)
- [Changelog](https://github.com/goccy/go-json/blob/master/CHANGELOG.md)
- [Commits](goccy/go-json@v0.9.6...v0.9.7)

---
updated-dependencies:
- dependency-name: github.com/goccy/go-json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* make tidy

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daisuke Maki <lestrrat+github@gmail.com>

* Add "missing required claims" error (#714)

* Return `RequiredClaimValidationError` error when required claim is missing

* slightly rework #713

* Hide error type from users
  -> We would like to expose APIs, not data types (where applicable)
* Expose a function to create the error
* Changed the underlying error type to implement ValidationError interface

* appease linter

Co-authored-by: Stefano Arlandini <sarlandini@alice.it>

* Update changes (#715)

Co-authored-by: Zach Collier <zamicol@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefano Arlandini <sarlandini@alice.it>

* merge develop/v2 (#748)

* Allow escape hatch for those who (incorrectly) use RFC3339 in Numeric Date fields (#735)

* Add the ability to parse RFC3339 dates for NumericDate types

* appease linter

* Tweaks (#737)

* Update go version

* Tweak documentation

* Update Changes

* Tweak doc (#738)

* show jwt.Sign using raw and jwk.Key (#739)

* autodoc updates (#740)

Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>

* Add example for using JWT fields (#741)

* fix typo (#742)

* [jwe/v2] Fix possible excessive unpadding for AESCBC (#745)

* Fix possible excessive unpadding for AESCBC

* Update Changes

* Update Changes

* Update Changes

* Update Changes

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>
Co-authored-by: Satoru Kitaguchi <64164948+satorunooshie@users.noreply.github.com>

* Allow escape hatch for those who (incorrectly) use RFC3339 in Numeric Date fields (#735)

* Add the ability to parse RFC3339 dates for NumericDate types

* appease linter

* Upgrade deps

* Upgrade github.com/lestrrat-go/httprc to v1.0.2 (#753)

* Update httprc to v1.0.2

* run make tidy

* Update Changes

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lestrrat <lestrrat@users.noreply.github.com>
Co-authored-by: Zach Collier <zamicol@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stefano Arlandini <sarlandini@alice.it>
Co-authored-by: Satoru Kitaguchi <64164948+satorunooshie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants