Skip to content

jjwt-gson cannot use the require series methods of io.jsonwebtoken.JwtParserBuilder normally #762

Open
@linghengqian

Description

@linghengqian

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:linghengqian/jjwt-gson-ex-test.git
sdk use java 22.3.r17-grl
./gradlew clean test
  • jjwt-jackson and jjwt-orgjson do not have this problem.

Expected behavior
A clear and concise description of what you expected to happen.

  • jjwt-gson can use the require series methods of io.jsonwebtoken.JwtParserBuilder normally.

Screenshots
If applicable, add screenshots to help explain your problem.

  • image

Activity

lhazlewood

lhazlewood commented on Dec 16, 2022

@lhazlewood
Contributor

Thank you for reporting this, we'll take a look after the JWE release!

added this to the 0.12.0 milestone on Aug 11, 2023
lhazlewood

lhazlewood commented on Aug 11, 2023

@lhazlewood
Contributor

@linghengqian do you think this would be resolved via #771 ? That would be my guess. GSON number deserialization is terrible.

linghengqian

linghengqian commented on Aug 11, 2023

@linghengqian
Author

@linghengqian do you think this would be resolved via #771 ? That would be my guess. GSON number deserialization is terrible.

  • @lhazlewood Adopting provide an enum that indicates the 'level' of precision desired scenario may not be something that should be on the 0.12.0 milestone. This kind of proposal looks like something that a major version milestone like 1.0.0 should have.

  • Personally, I think we should use a custom ToNumberStrategy directly inside jjwt .

modified the milestones: 0.12.0, 1.0 on Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lhazlewood@linghengqian

        Issue actions

          jjwt-gson cannot use the require series methods of io.jsonwebtoken.JwtParserBuilder normally · Issue #762 · jwtk/jjwt