How to do it...

The next steps will present you with how you can create an Authorization Server that implements a use case from the dynamic client registration profile:

  1. 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 dynamic-server and add Web, Security, JPA, and MySQL as dependencies for this project
  2. 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>
  1. So that the client can be properly registered at the Authorization Server, ...

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.