Search code examples
jakarta-eequarkusmicroprofile

Use of @RolesAllowed in Quarkus with custom JWT validation, without smallrye-jwt


I need to use @RolesAllowed without smallrye-jwt because the project uses a JWT signed inside a JWE. We have an endpoin for that which will be called from a filter.

But if I remove the smallrye-jwt dependency, the @RolesAllowed annotation is no longer validated.

How could @RolesAllowed be used in Quarkus without smallrye-jwt?


Solution

  • I found the following guide to use @RolesAllowed: https://howtodoinjava.com/resteasy/resteasy-containerrequestfilter-example/