Skip to content

Spring boot application to sign up new users and login user with username and password.By user role one is authorised to access resources.

Notifications You must be signed in to change notification settings

brandy-kay/JWTAuthentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWTAuthentication

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.

Endpoint provided

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

Getting Started

Spring Security

Here is the spring boot server diagram how the process flows.

Technology Used

  • java8
  • Spring boot2 (with spring security.Spring web Spring Data JPA)
  • jjwt 0.9.1
  • MySQL
  • Gradle

Demo

Postman test for Sign up

Postman test for Sign in

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Additional Links

These additional references should also help you:

Support

  • 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.

About

Spring boot application to sign up new users and login user with username and password.By user role one is authorised to access resources.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages