Spring Boot ft. Keycloak - Resource - Authorization Server

Can you find a better couple?

Recently I was being put in the position of needing to set up the security part of a new Spring Boot application.

The architecture is simple:

🔹  Backend resource server implemented with Spring Boot

🔹  Frontend client

🔹  Authorization server using Keycloak

I found a lot of articles online that described similar projects to my case, but not quite.

Most of them were using a Spring MVC project which stood for both client and resource server.Which is not my case, I didn't need to configure client authorization.

I only needed to configure it for the resource server.

After some more research and a lot of trial and error I figured it out and wanted to share it with you.

Let's go! 🚀