Skip to content

This is a Spring-boot authentication server application which authenticates a user and sends back a JSON Web Token. once authenticated these JSON Web tokens can be used by other applications to validate a user.

Notifications You must be signed in to change notification settings

chandan-pal/login-register-jwt-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



login-register-jwt-mysql

login and registration service implementing JWT, and MySQL database

Concept

This is a Spring-boot authentication server application which authenticates a user and sends back a JSON Web Token. once authenticated these JSON Web tokens can be used by other applications to validate a user.

This application can be used as a template to create a standalone common authetication servers

features:

  1. This application utilizes Spring Security to block all incoming requests without proper authentication and authorization.
  2. It provides api to register a new user and save the user in the database. url '/register'
  3. It generates a new unique userId for every new user.
  4. It uses jdbc authentication to validate/autheticate users from MySQL database and JPA - Java Persistence API.
  5. It generates a new signed JWT for any request to authentication url '/authenticate'. (only if the user credentials are valid).
  6. Additionaly, this application also applie a filter before every subsequent requests to validate the token if any in the request body.

About

This is a Spring-boot authentication server application which authenticates a user and sends back a JSON Web Token. once authenticated these JSON Web tokens can be used by other applications to validate a user.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages