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

Encoding JsonWebTokenRedisPayload creates malformed payloads #1

Open
einar-hjortdal opened this issue Aug 17, 2023 · 0 comments
Open

Comments

@einar-hjortdal
Copy link
Owner

einar-hjortdal commented Aug 17, 2023

The struct JsonWebTokenPayload encodes to

{
    "JsonWebTokenPayload":
    {
        "iss":"",
        "sub":"",
        "aud":"",
        "exp":1692318447,
        "nbf":1692275247,
        "iat":1692275247,
        "jti":"ea3fc83a-c64d-4ca8-b3ce-854b781910a0"
    },
    "sid":"49800a35-d61f-4739-b821-bef991b970f0"
}

Instead of

{
    "iss":"",
    "sub":"",
    "aud":"",
    "exp":1692318447,
    "nbf":1692275247,
    "iat":1692275247,
    "jti":"ea3fc83a-c64d-4ca8-b3ce-854b781910a0",
    "sid":"49800a35-d61f-4739-b821-bef991b970f0"
}

The malformed token works fine but is not standards compliant

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

No branches or pull requests

1 participant