Skip to content

This project implements robust authentication and authorization using Spring Security and JWT-based token handling. It ensures secure access control through Access Tokens for short-lived authentication and Refresh Tokens to extend user sessions without requiring reauthentication.

Notifications You must be signed in to change notification settings

vivek-115/Spring-Security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Security with JWT Authentication (Access Tokens & Refresh Tokens)

This project demonstrates a comprehensive implementation of Spring Security with JWT (JSON Web Tokens) for authentication and authorization. It incorporates Access Tokens for short-lived security and Refresh Tokens for renewing access tokens without re-authenticating the user.

Screenshot 2025-03-20 063418

Features

  • Secure Authentication and Authorization:
    • JWT-based token mechanism for stateless security.
  • Access and Refresh Tokens:
    • Access Tokens for quick, short-term authentication.
    • Refresh Tokens for renewing access tokens securely.
  • User Management:
    • Endpoints for user registration and login.
  • Scalable & Stateless:
    • Stateless session management using Spring Security.
  • API Documentation:
    • Integrated Swagger UI for easy API exploration.

Built With

  • Spring Boot - Backend framework
  • Spring Security - Authentication and Authorization
  • JWT (JSON Web Tokens) - Token-based security
  • MySQL - Database (modifiable to MySQL/PostgreSQL)
  • Maven - Dependency management

Prerequisites

  • Java 17 or later
  • Maven for building the project
  • Postman (optional) for testing APIs
  • Internet connection for dependencies

Getting Started

Clone the Repository

git clone https://github.com/vivek-115/Spring-Security.git
cd your-repository

Schema


image

About

This project implements robust authentication and authorization using Spring Security and JWT-based token handling. It ensures secure access control through Access Tokens for short-lived authentication and Refresh Tokens to extend user sessions without requiring reauthentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages