Skip to content

Ready-to-use starter module for authentication and authorization (JWT-based) using Spring Boot and Spring Security.

License

Notifications You must be signed in to change notification settings

nadimnesar/spring-security-jwt-auth-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ready-to-use starter module for authentication and authorization (JWT-based) using Spring Boot and Spring Security.

Topics

Resources

License

Stars

Watchers

Forks

Languages