Skip to content

After version 0.12.x, the JWT sub field is mandated to use the string type, which has led to failures in the service's JWT generation and verification. #1027

@yutoutang

Description

@yutoutang

Hi~

After our project upgraded jjwt to version 0.12.x, we found that the new version of jjwt enforces validation of the sub field in the payload to be of string type. This has caused failures in our JWT generation and verification, as our current JWT payload's sub field is of long type.

Background: We provide a general authentication service for developers, which covers a large number of applications and users. If we hastily modify the JWT generation rules, it will lead to incompatibility issues for the callers. Meanwhile, it would be very difficult for us to notify all callers to troubleshoot and rectify the problem.

Is it possible to enable the JWT issuance method where the sub field is of long type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions