auth0-java icon indicating copy to clipboard operation
auth0-java copied to clipboard

Make deserializers public

Open koates-ol opened this issue 10 months ago • 1 comments

Checklist

  • [x] I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • [x] I have looked into the API documentation and have not found a suitable solution or answer.
  • [x] I have searched the issues and have not found a suitable solution or answer.
  • [x] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [x] I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

I'm trying to use the library with Quarkus in native mode and running into the following class not registered for reflection:

Class com.auth0.json.mgmt.roles.RolesPageDeserializer has no default (no arg) constructor
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1]

Describe the ideal solution

Ability to register the class for reflection like I am able to do with com.auth0.json.auth.TokenHolderDeserializer

From what I can tell this could be achieved by making the Deserializer classes public and then perform the registration:

Image

Alternatives and current workarounds

No response

Additional context

No response

koates-ol avatar Mar 05 '25 21:03 koates-ol

Hi @koates-ol,

Thank you for raising this issue. I've noted this and I'll keep you updated.

Thank you

tanya732 avatar Apr 15 '25 05:04 tanya732