Code Monkey home page Code Monkey logo

jwtauthentication's Introduction

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.

jwtauthentication's People

Contributors

brandy-kay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

agesa3 kimkimani

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.