{"repo":"MossaabFrifita/spring-boot-4-security-7-jwt","free":true,"listed":false,"github":"https://github.com/MossaabFrifita/spring-boot-4-security-7-jwt","clone":"git clone https://github.com/MossaabFrifita/spring-boot-4-security-7-jwt.git","description":"Spring Boot 4 & Spring Security 7 : Token Based Authentication example with JWT, Authorization, Spring Data & PostgreSQL","language":"Java","stars":84,"topics":["jwt","jwt-authentication","openapi3","spring-boot","spring-data-jpa","spring-security","spring-validation","swagger-ui","httponly-cookie","jwt-authorization"],"license":null,"category":"auth-billing-email","readme_excerpt":"🔐 Spring Security JWT Authentication & Authorization A comprehensive Spring Boot application demonstrating JWT-based authentication and role-based authorization with refresh token support. This project showcases modern security practices using Spring Security 7 and Spring Boot 4. ✨ Features - 🔑 JWT Authentication - Secure token-based authentication - 🔄 Refresh Token Support - Long-lived refresh tokens stored in database - 👥 User Registration & Login - Complete authentication flow - 🛡️ Role-Based Access Control (RBAC) - Fine-grained authorization with roles and privileges - 🍪 HTTP-Only Cookies - Secure token storage in cookies - 📝 OpenAPI/Swagger Documentation - Interactive API documentation - ✅ Password Validation - Strong password requirements - 🚫 Custom Error Handling - Customized access denied and unauthorized handlers - 🔒 Spring Security Integration - Full Spring Security configuration 🛠️ Tech Stack - Java 17 - Spring Boot 4.0.1 - Spring Security 7 - Spring Data JPA - PostgreSQL - Database - JWT (jjwt 0.11.5) - JSON Web Token implementation - Maven - Build tool - Lombok - Boilerplate reduction - OpenAPI/SpringDoc - API documentation - Bean Validation - Request validation 📋 Prerequisites Before you begin, ensure you have the following installed: - JDK 17 or higher - Maven 3.6+ - PostgreSQL 12+ - Git (for cloning the repository) 🚀 Getting Started 1. Clone the Repository 2. Database Setup Create a PostgreSQL database: 3. Configuration Update the application.yml f","default_branch":null,"files":null,"tree":[],"storefront":"/r/MossaabFrifita","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MossaabFrifita/spring-boot-4-security-7-jwt/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}