auth0 / java-jwt

Java implementation of JSON Web Token (JWT)
MIT License
5.84k stars 921 forks source link

JwkProviderBuilder doesn't allow us to load jwks from a file. Instead the only option available is to load it via a URL. #681

Closed jaswanthm closed 7 months ago

jaswanthm commented 7 months ago

Checklist

Describe the problem you'd like to have solved

I've been trying to create a JwkProvider from a json instead of reading it from a URL. The current implementation doesn't allow that functionality. I was wondering if this would be possible to add as a new feature.

Describe the ideal solution

The solution would add a new variation of a JwkProviderBuilder that would receive jwks as a json input. The functionality of the builder would remain the same, except it would remove the logic where the jwks are read from the given URL/domain.

Alternatives and current workarounds

There are no current workarounds unfortunately.

Additional context

No response

jaswanthm commented 7 months ago

Ah, sorry. Realised this was a different project. Will move my issue to the correct one. Thanks!