/spring-security-for-newbies

Spring Security Introduction Demos

Primary LanguageKotlinApache License 2.0Apache-2.0

Spring Security for Newbies

This repository contains demo labs to show how spring security works using a simple spring boot application.

The demo application

The application provides the following REST APIs:

In addition, it exposes all common spring actuator REST APIs:

You can also look at the REST API docs using:

You may also use the provided postman collection for your convenience.

The labs

All labs are organized using different git branches:

  1. Initial unsecured application (branch main)
  2. Using spring security just with spring boot auto-configuration (branch autoconfig)
  3. Custom authentication configuration with our own user storage (branch custom-auth)
  4. Add authorization to the application (branch authorization)
  5. Convert app into an OAuth/OpenID Connect resource server (branch oauth)