/java-spring-security-example

Spring Security Sample Project

Primary LanguageJava

Spring Security Example

Sample project demonstrating configuration and usage of Spring Security framework

Please see the article here

Used Core Libraries

Project Demonstrates

  • Spring Security Configuration
  • JWT Based Stateless Authentication
  • Role Based Authorization
  • Integration Testing

Important Notes

  • 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.