czetsuya/spring-aspect-security
This project secures Spring REST endpoints using Aspect. It introduces a security interceptor that pre-handles a REST request and where a bearer token is converted into application user. If the user does not exist or does not have the required permission then an error will be thrown. As a bonus, if the user is valid, it's id is save in the request attribute and can be pass into the REST endpoint, so that it can be used for future use.
Java