Requirements and Setup
Last updated
Last updated
Version 11 or 17
A Java IDE like
, , or for REST calls
In case you select , then the provided might be helpful. Just import this into Postman.
IntelliJ does not require any specific additional plugins or configuration.
If you are an Eclipse user, then the usage of the Eclipse-based is strongly recommended. This eclipse variant already has all the required gradle and spring boot support pre-installed.
In case you want to stick to your plain Eclipse installation then you have to add the following features via the eclipse marketplace:
BuildShip Gradle Integration (Version 3.x). This might be already pre-installed depending on your eclipse variant (e.g. Eclipse JavaEE) installed.
Spring Tools 4 for Spring Boot (Spring Tool Suite 4).
To be able to work properly in Visual Studio Code with this Spring Boot Java Gradle project you need at least these extensions:
Java Extension Pack
vscode-gradle-language
VS Code Spring Boot Application Development Extension Pack
After that you can import the whole workshop project directory into your IDE as a gradle project:
All spring boot based java projects can either be run using your Java IDE or using the command line with changing into the corresponding project directory and issuing a ./gradlew bootRun
command.
To set up and run this project:
Import this project into your IDE as a gradle project
After the IDE has configured the project you can start the authorization server by running the main class com.example.spring.authorizationserver.SpringAuthorizationServerApplication
The spring authorization server does not have a UI. Instead, to prove it is running just open the web browser and navigate to http://localhost:9000/.well-known/openid-configuration.
Now, if you see the openid configuration in the browser (how nice it is shown depends on your browser addons) then spring authorization server is ready to use it for this workshop.
Clone this GitHub repository :
: Open menu item "New project from existing sources..." and then select 'Gradle' when prompted
or : Open menu item "Import/Gradle/Existing gradle project"
: Just open the root directory in VS Code and wait until VS Code has configured the project
In this workshop we will use a customized version of as local identity provider. implements OAuth 2.0 and OpenID Connect 1.0.
You need a compliant OAuth 2.0 / OpenID Connect 1.0 provider for this workshop. Here we will use .
Clone or download the GitHub repository at:
If you want to know more about setting up a spring authorization server for your own projects then please consult the . Please note that currently there is not really much documentation there, but currently the community is adding more docs.