This is a spring boot application that supports token based authentication with JWT, it covers the following concepts
- Flow for user signup and signin with JWT Authentication
- Spring boot application architecture with spring security
- Data models definitions
- Using spring data JPA to interact with
MySQL
database
This application runs on MySQL
database and the RESTApi
are tested on postman.
methods | Urls | actions |
---|---|---|
POST | /api/auth/signup | signup new account |
POST | /api/auth/signin | signin user to created account |
GET | /api/test/all | retrive public contents |
GET | /api/test/user | accesses user content |
GET | /api/test/mod | accesses moderator content |
GET | /api/test/admin | accesses admins content |
Here is the spring boot server diagram how the process flows.
- java8
- Spring boot2 (with spring security.Spring web Spring Data JPA)
- jjwt 0.9.1
- MySQL
- Gradle
Postman test for Sign up
Postman test for Sign in
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Data JPA
- Spring Security
The following guides illustrate how to use some features concretely:
- Accessing Data with JPA
- Accessing data with MySQL
- Securing a Web Application
- Spring Boot and OAuth2
- Authenticating a User with LDAP
These additional references should also help you:
- Found this project useful ❤️? Support by clicking the ⭐️ button on the upper right of this page. ✌️
- Notice anything else missing? File an issue
- Feel free to contribute in any way to the project from typos in docs to code review are all welcome.