Creating the Auth microservice

As we have been doing in this chapter, we will take a look at the important parts. Let's start with our dependencies. We need to put in the following dependencies:

  <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-oauth2</artifactId></dependency>  <dependency>    <groupId>org.springframework.security</groupId>    <artifactId>spring-security-core</artifactId>  </dependency>  <dependency>    <groupId>org.springframework.security</groupId>    <artifactId>spring-security-config</artifactId>  </dependency>

These dependencies will enable us to use the Spring Cloud Security features. Let's start to code our Authentication microservice.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.