The API Gateway handles the token validation and then routes it to the appropriate service. similar situation is described here.
I want to use a javax.annotation.security.RolesAllowed annotation (Secured or similar) to protect easily endpoints with role-based rules. Just to confirm if the already validated JWT token has the required role for the specific endpoint.
Without activating security in the Micronaut that annotation doesn't work. Is any way to make it work and not make an additional validation on the service side? Unfortunately, I couldn't find any nice solution.