Allow using custom ObjectMapper for JWTParser
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- java
- Domain
- authentication
Research direction
Start at the JWTParser(ObjectMapper objectmapper) constructor mentioned in the issue and inspect how JWTParser creates and uses its mapper. Confirm the appropriate visibility and verify that callers can provide a Jackson mapper configured with the Kotlin module; the custom mapper should be used when parsing JWT data.
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
I would like to use my custom ObjectMapper with the JWTParser.
I'm using kotlin and the default ObjectMapper is not equipped with the jackson kotlin module.
I see there is a constructor JWTParser(ObjecMapper objectmapper) but unfortunately its package private, so I have no possibility to use it.
Describe the ideal solution
Make the JWTParser(ObjecMapper objectmapper) constructor protected/public
Alternatives and current workarounds
As a current workaround I'm working with @JsonProperty annotations on my POJOs to make it work with the default ObjectMapper.
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 45/100
Similar issues
-
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
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100