Skip to content

A Demo application for JWT based authentication using Spring (Spring Boot)

License

Notifications You must be signed in to change notification settings

SeshuTechie/spring-jwt-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JWT Based Authentication in Spring

This project just helps in demonstrating JWT based authentication using Spring. This has a REST service to provide user signup, login, logout functionality. This also has a simple User Notes service that provides create, update, delete and list of some text content (notes). This user notes REST service is accessible only after user login.

List of API Provided

  • POST /users : signup a user
  • POST /access-tokens : login user
  • DEL /access-tokens : logout user
  • POST /access-tokens/refresh : gives a refreshed access token using refresh key

Below API needs authentication

  • POST /notes : create a note
  • GET /notes : get list of notes (page)
  • PUT /notes/{id} : update notes
  • DEL /notes/{id} : delete notes
  • GET /user-info : gets user details

About

A Demo application for JWT based authentication using Spring (Spring Boot)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages