How to do it...

This recipe shows you how to create the Authorization Server that will be defined as the jwe-server project. This project is available on GitHub in the Chapter05 folder and all that you will need to create this project is presented in the next steps:

  1. You can create the jwe-server project at Spring Initializr, referencing Web and Security dependencies to easily set up the project.
  1. 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.