Skip to content

This project demonstrates the implementation of APIs Creation and security using Spring Boot 3.0 and (JWT)

Notifications You must be signed in to change notification settings

YousefTsh/SpringBoot_JWT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot 3.0 Security with JWT

This project demonstrates the implementation of APIs Creation and security using Spring Boot 3.0 and (JWT) JSON Web Tokens, To Create Secure Endpoints To Secure BackEnd APIs

Screenshot 2024-01-26 170125

Features

  • User registration and login with JWT authentication
  • Customized access denied handling
  • Password encryption using BCrypt
  • Role-based authorization with Spring Security
  • Logout mechanism
  • RestFull APIs

Technologies

  • Spring Boot 3.0
  • Spring Security
  • JSON Web Tokens (JWT)
  • BCrypt
  • Maven
  • Docker
  • PostgreSQL

Getting Started

To get started with this project, you will need to have the following installed on your local machine:

  • JDK 17+
  • Maven 3+

To build and run the project, follow these steps:

  • Clone the repository: git clone https://github.com/YousefTsh/SpringBoot_JWT.git
  • Navigate to the project directory: cd SpringBoot_JWT
  • Run Docker Compose File to Create PostgreSQL Container
  • Add database "jwt_security" to postgres
  • Build the project: mvn clean install
  • Run the project: mvn spring-boot:run

-> The application will be available at http://localhost:8081.

About

This project demonstrates the implementation of APIs Creation and security using Spring Boot 3.0 and (JWT)

Topics

Resources

Stars

Watchers

Forks

Languages