Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtasalem/spring-security-auth-server
https://github.com/rtasalem/spring-security-auth-server
authentication h2-database java jpa jwt oauth2 spring-boot spring-security
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtasalem/spring-security-auth-server
- Owner: rtasalem
- Created: 2024-07-28T19:43:38.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T18:43:11.000Z (6 months ago)
- Last Synced: 2024-08-04T15:01:43.556Z (6 months ago)
- Topics: authentication, h2-database, java, jpa, jwt, oauth2, spring-boot, spring-security
- Language: Java
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Security Authenticated Server
## Acknowledgements
Credit to [unkownkoder on Youtube](https://www.youtube.com/@unknownkoder) for their tutorial on [_How to Create a Login System with Spring Data JPA and JWTs_](https://youtu.be/TeBt0Ike_Tk?si=ua8exzVlrdtlj9FD).
## Prequisites
- Maven
- Docker## Summary
This is a Spring Security authentication server. The server enables users with the `admin` role to access both the user and admin endpoints, while for users the admin endpoint is locked down and only access to the user endpoint is permitted.
### Dependencies
- Spring Security
- OAuth 2.0 Resource Server
- Spring Web
- Spring Data JPA
- H2 Database
- Spring Boot DevTools
- Lombok### Personal Touches
While following unknownkoder's tutorial, additional enhancements were made to the codebase:
- The Lombok dependency was installed to reduce the amount of overall boilerplate code that was written during the tutorial.
- The server is configured to run within a Docker container.
- Java Docs to provide details of all API endpoints.## Getting Started
```
docker compose build
docker compose up -d
```