Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.82 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.82 KB

Spring Security JWT Auth Module

Status GitHub Issues GitHub Pull Requests Commit Activity License

This project is a ready-to-use starter module for authentication and authorization (JSON Web Token-based) using Spring Boot and Spring Security. It avoids deprecated methods, ensuring compatibility and security.

Prerequisite

  • JDK 21
  • Spring Boot >= 3.3.1
  • Spring Security >= 6.3.1
  • H2 Database
  • Gradle (Groovy)
  • Base64 Encoded Secret Key (generate at Base64Encode.org)

Features

  • Registration
  • Login
  • API method security with roles

RESTful API Details

Registration

  • POST /api/auth/register postman
  • POST /api/auth/admin/register postman

Login

  • POST /api/auth/login postman

Authorization

  • GET /api/user/ postman
  • GET /api/admin/ postman