How to do it...

This recipe presents you with how you can create the Resource Server that will be defined as the project jwe-resource. This project is available on GitHub in the Chapter05 folder and all you need to create this project is presented in the following steps:

  1. You can create the project jwe-resource at Spring Initializr, referencing Web and Security dependencies to easily set up the project.
  2. If you have created the project using Spring Initializr, import the generated source code as a Maven project into your IDE and add the following dependencies into the pom.xml:
<dependency>  <groupId>org.springframework.security.oauth</groupId>  <artifactId>spring-security-oauth2</artifactId>  <version>2.2.0.RELEASE</version><!--$NO-MVN-MAN-VER$ ...

Get OAuth 2.0 Cookbook 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.