March 2018
Intermediate to advanced
140 pages
2h 42m
English
All the services we have created up until now are unsecured. A consumer does not need to provide any credentials to access these services. However, all services in the real world are usually secured.
In this section, we will discuss two ways of authenticating REST services:
We will implement these two types of authentication with Spring Security.
Spring Boot provides a starter for Spring Security using spring-boot-starter-security. We will start with adding Spring Security starter to our pom.xml file.
Add the following dependency to your file pom.xml:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> ...