Skip to content

Spring security + JWT + microservies

Notifications You must be signed in to change notification settings

kplese/springsecurity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

springsecurity

The Spring security project is used to Authenticate the user by reading JWT token from request header.

The App flow is user will singup with username,email,password the app will ask the user to login after signup. Once the user enter username and password and login using /signin restapi. The rest api will generate JWT token and send back to client. The client need to send JWT token for each request .By implementing the abstract OncePerRequestFilter the JWTFilterPerRequest will validate the token entered by the client.

Steps to test API:

1)Create a JSON with SignUP request and submit to /signup api. 2)Create the JSON for SignIn request with username and password.The JWT rest API will return JWT token. 3)Send the token in authorization request headeralong along with request for api call

About

Spring security + JWT + microservies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.4%
  • Dockerfile 0.6%