The next steps will present you with how you can create a client application that uses the Client Credentials grant type:
- Create the project using Spring Initializr. Go to https://start.spring.io/ and fill out the form using the following data:
- Set up the Group as com.packt.example
- Define the Artifact as client-client-credentials
- Add Web, Security, and Thymeleaf as dependencies for this project
- After creating the client-client-credentials project, import it to your IDE.
- Open the pom.xml file and add the following dependency, as we will use the Spring Security OAuth2 project:
<dependency> <groupId>org.springframework.security.oauth</groupId> <artifactId>spring-security-oauth2</artifactId></dependency>
- Add the following ...