After moving from monolithic applications to microservices, the obvious solution seems to be the centralization of the authorization effort by creating an authorization service. With Spring Boot and Spring Security, you may easily create, configure, and launch an authorization server. First, we need to include the following starters to the project dependencies:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-oauth2</artifactId></dependency><dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-security</artifactId></dependency>
The implementation of an authorization server pattern with Spring Boot is very easy. We just have to annotate ...