In this section, we will secure our Spring Cloud configuration and for simplicity purposes, temporarily free the Journaler API from security limits. We will demonstrate the basic principles of securing microservices and guide you step by step in achieving this.
Each of our modules must support Spring Security and Spring sessions. For that purpose, extend each build.gradle configuration with Spring Security and Spring session support dependencies:
... dependencies { compile 'org.springframework.boot:spring-boot-starter-security' } ...
We will store all of our sessions in memory. For that purpose, we will use the Redis in-memory database. We have to extend each of our applications to support it by extending build.gradle with the following dependency:
... dependencies { compile 'org.springframework.boot:spring-boot-starter...