Sample project demonstrating configuration and usage of Spring Security framework
Please see the article here
- Spring Security Configuration
- JWT Based Stateless Authentication
- Role Based Authorization
- Integration Testing
- The article is outdated, in the project authentication is implemented using the spring-boot-starter-oauth2-resource-server library. I will update it when I have some free time.
- For the sake of simplicity, I keep RSA key pairs in the git repository. Please don't follow this approach in real applications and extract sensitive information outside the project repository.