The following steps will show you how to implement both the Authorization Server and Resource Server to use the remote token validation approach:
- Create two applications using Spring Initializr named remote-authserver and remote-resource, both using the group ID com.packt.example. Both applications must use the dependencies Web, Security, JPA, and MySQL. These dependencies can be added at Spring Initializr.
- Import both applications to your preferred IDE and make sure you add the following dependency into pom.xml for both projects:
<dependency> <groupId>org.springframework.security.oauth</groupId> <artifactId>spring-security-oauth2</artifactId></dependency>
- Create the table which will hold the Resource Owner's information ...