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

Bump github.com/lestrrat-go/jwx from 1.2.1 to 1.2.2 #1247

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 14, 2021

Bumps github.com/lestrrat-go/jwx from 1.2.1 to 1.2.2.

Release notes

Sourced from github.com/lestrrat-go/jwx's releases.

v1.2.2

v1.2.2 13 Jul 2021
[Deprecation notice]
  * `(jwe.Message).Decrypt()` will be removed from the API upon the next
    major release.

[Bug Fixes]

  • jwe.Decrypt and (jwe.Message).Decrypt() failed to decrypt even with the correct message contents when used along with jwe.RegisterCustomField

[New features] JWX

  • Add GuessFormat() function to guess what the payload is.

JWT

  • Options jwt.WithMinDelta(), jwt.WithMaxDelta() have been added. These can be used to compare time-based fields in the JWT object.
  • Option jwt.WithRequiredClaim() has been added. This can be used to check that JWT contains the given claim.
  • jwt.Parse now understands payloads that have been encrypted and signed. This is more in line with the RFC than the previous implementation, but due to the fact that it requires a couple of extra unmarshaling, it may add some amount of overhead.
  • jwt.Serializer has been added as an easy wrapper to perform multiple levels of serializations (e.g. apply JWS, then JWE)

JWE

  • Option jwe.WithMessage() has been added. This allows the user to obtain both the decrypted payload and the raw *jwe.Message in one go when jwe.Decrypt() is called
  • Option jwe.WithPostParser(), along with jwe.PostParser and jwe.PostParseFunc has been added. This allows advanced users to hook into the jwe.Decrypt() process. The hook is called right after the JWE message has been parsed, but before the actual decryption has taken place.
  • (jwe.Message).Decrypt() has been marked for deprecation in a next major release.

JWS

  • Option jwe.WithMessage() has been added. This allows the user to obtain both the verified payload and the raw *jws.Message in one go when jws.Verify() is called
  • Options to jws.Sign() are not of type jws.SignOption. There should be no user-visible effects unless you were storing these somewhere.
Changelog

Sourced from github.com/lestrrat-go/jwx's changelog.

v1.2.2 13 Jul 2021 [Deprecation notice]

  • (jwe.Message).Decrypt() will be removed from the API upon the next major release.

[Bug Fixes]

  • jwe.Decrypt and (jwe.Message).Decrypt() failed to decrypt even with the correct message contents when used along with jwe.RegisterCustomField

[New features] JWX

  • Add GuessFormat() function to guess what the payload is.

JWT

  • Options jwt.WithMinDelta(), jwt.WithMaxDelta() have been added. These can be used to compare time-based fields in the JWT object.
  • Option jwt.WithRequiredClaim() has been added. This can be used to check that JWT contains the given claim.
  • jwt.Parse now understands payloads that have been encrypted and signed. This is more in line with the RFC than the previous implementation, but due to the fact that it requires a couple of extra unmarshaling, it may add some amount of overhead.
  • jwt.Serializer has been added as an easy wrapper to perform multiple levels of serializations (e.g. apply JWS, then JWE)

JWE

  • Option jwe.WithMessage() has been added. This allows the user to obtain both the decrypted payload and the raw *jwe.Message in one go when jwe.Decrypt() is called
  • Option jwe.WithPostParser(), along with jwe.PostParser and jwe.PostParseFunc has been added. This allows advanced users to hook into the jwe.Decrypt() process. The hook is called right after the JWE message has been parsed, but before the actual decryption has taken place.
  • (jwe.Message).Decrypt() has been marked for deprecation in a next major release.

JWS

  • Option jwe.WithMessage() has been added. This allows the user to obtain both the verified payload and the raw *jws.Message in one go when jws.Verify() is called
  • Options to jws.Sign() are not of type jws.SignOption. There should be no user-visible effects unless you were storing these somewhere.
Commits
  • 7159c50 Update Changes
  • e7f813e Various cleanups including renaming Do() to PostParse() (#410)
  • 77bdef1 Rework JWT serialization/deserialization (#409)
  • 8db26f9 Implement WithMessage option for jws (#408)
  • c575066 Overhaul jwe.Decrypt/jwe.Message.Decrypt (#406)
  • fdad704 Update benchmark.yml
  • 57cbfd3 Add notes about field orders when you use RegisterCustomField (#403)
  • 8820db7 Implement WithMaxDelta, WithMinDelta, and WithRequiredClaim (#399)
  • 21d9ccd Fix documentation and examples for OpenID claims (#401)
  • 423acdb fix typo for error message if signature is invalid (#400)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/lestrrat-go/jwx](https://github.com/lestrrat-go/jwx) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/lestrrat-go/jwx/releases)
- [Changelog](https://github.com/lestrrat-go/jwx/blob/main/Changes)
- [Commits](lestrrat-go/jwx@v1.2.1...v1.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Go code labels Jul 14, 2021
@deluan deluan merged commit deefd7a into master Jul 14, 2021
@deluan deluan deleted the dependabot/go_modules/github.com/lestrrat-go/jwx-1.2.2 branch July 14, 2021 15:06
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file go Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant