The next steps will show how you can create an Authorization Server that implements a token revocation profile:
- 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 revoke-server and add Web, Security, JPA, and MySQL as dependencies for this project
- 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 content to the application.properties file:
security.user.name=adolfosecurity.user.password= ...