Read the payload written by withPayload
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- backend-api-design, security
Research direction
Start with JWT.create().withPayload(payload) and JWTDecoder, especially the mentioned JWTDecoder.payloadJson access. Review how decoded payload data is currently exposed and identify the existing tests for these APIs. Done means callers can read the payload in a consistent, documented form after decoding, with tests covering the new access.
Written by the indexing model from the issue text.
Description
Checklist
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
Hello,
When buliding a JWT you can set a payload with JWT.create().withPayload(payload).
But when decoding the JWT you don't have access to this payload. You are just able to get the payload Base64 encoded.
Describe the ideal solution
Maybe give access to JWTDecoder.payloadJson. The problem is the incosistent design of the methods.
Alternatives and current workarounds
No response
Additional context
No response
- Dominant language
- Java
- Stars
- 6.2k
- Forks
- 945
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from auth0/java-jwt
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
feature request
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100