Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erebelo/spring-security-jwt
Java REST API project using Spring Boot 3, Spring Security 6 for JWT Authentication and Authorization, and H2 database
https://github.com/erebelo/spring-security-jwt
authentication authorization back-end backend backend-api backend-service h2-database java jwt jwt-authentication spring spring-boot spring-boot-3 spring-security spring-security-6 spring-security-jwt springboot
Last synced: 4 days ago
JSON representation
Java REST API project using Spring Boot 3, Spring Security 6 for JWT Authentication and Authorization, and H2 database
- Host: GitHub
- URL: https://github.com/erebelo/spring-security-jwt
- Owner: erebelo
- License: mit
- Created: 2024-03-21T23:05:12.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T15:58:33.000Z (7 days ago)
- Last Synced: 2024-11-13T16:35:33.556Z (7 days ago)
- Topics: authentication, authorization, back-end, backend, backend-api, backend-service, h2-database, java, jwt, jwt-authentication, spring, spring-boot, spring-boot-3, spring-security, spring-security-6, spring-security-jwt, springboot
- Language: Java
- Homepage: https://jwt.erebelo.com/spring-security-jwt/swagger-ui/index.html
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Security JWT
REST API project developed in Java using Spring Boot 3, Spring Security 6 for JWT Authentication and Authorization, and H2 database.
## Features
- Token-based Authentication using JSON Web Token (JWT)
- Role-based authorization
- Encoding password with BCrypt algorithm## Requirements
- Java 17
- Spring Boot 3.x.x
- Spring Security 6.x.x
- Apache Maven 3.8.6## Libraries
- [spring-common-parent](https://github.com/erebelo/spring-common-parent): Manages the Spring Boot version and provide common configurations for plugins and formatting.
## Run App
- Set the following environment variables: `ADMIN_PASSWORD` and `SECRET_KEY` (size >= 256 bits).
- Run the `SpringSecurityJwtApplication` class as Java Application.## Collection
[Project Collection](https://github.com/erebelo/spring-security-jwt/tree/main/collection)
## AWS Demo
[Spring Security JWT](https://jwt.erebelo.com/spring-security-jwt/swagger-ui/index.html)
## AWS Deployment
Follow the [AWS Docker](https://github.com/erebelo/aws-docker/tree/main) guide to deploy a **Java App** instance and how to set up **Nginx** as a reverse proxy with a valid Wildcard SSL/TLS certificate.