Useful when your microservices architecture already filters HTTP requests with invalid or expired authorization token, but needs a lightweight way to implement authorization mechanism at method-level on its internal services (clients) trought a simple annotations without having to rely on relatively heavy libraries (like Spring Security, Oauth stuff, etc)
To utilize this library as a maven dependency add to your project's pom:
<dependencies>
<dependency>
<groupId>com.ciros</groupId>
<artifactId>authorizer</artifactId>
<version>${artifact.version}</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>ciros88-authorizer</id>
<url>https://github.com/ciros88/authorizer/raw/mvn-repo</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
see 'mvn-repo' branch for '${artifact.version}' values to choose from