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

Explicit jackson serializer for jwt token provider #7580

Merged

Conversation

lucassaldanha
Copy link
Member

PR Description

JJWT current version has a very inefficient lookup implementation. This can lead to unexpected outcomes, ultimately resulting on the io.jsonwebtoken.io.Serializer: Error accessing configuration file issue.

Adding an explicit serializer is enough to bypass the lookup and avoid the issue completely (see https://github.com/jwtk/jjwt/blob/0.11.5/impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtBuilder.java#L287-L292).

I believed they have fixed this in version 0.12 but it is still under development.

Fixed Issue(s)

fixes #7559

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@lucassaldanha lucassaldanha enabled auto-merge (squash) October 5, 2023 21:26
Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lucassaldanha lucassaldanha merged commit f5dca23 into Consensys:master Oct 6, 2023
15 checks passed
@lucassaldanha lucassaldanha deleted the avoid-serviceload-call branch October 25, 2023 21:19
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.

engine API call error due to failure in jwt creation
2 participants