An open API service indexing awesome lists of open source software.

https://github.com/cedrickring/spring-boot-auth-service

Simple authorization service with JWT written in Spring Boot
https://github.com/cedrickring/spring-boot-auth-service

Last synced: over 1 year ago
JSON representation

Simple authorization service with JWT written in Spring Boot

Awesome Lists containing this project

README

          

Spring Boot Auth Service


by using JWT auth tokens

## Routes

| Route | Method | Request Body | Response |
|-------|--------|--------------|------------|
| /register | POST | { "fullName": "Test User", "username": "test", "emailAddress": "some@email.com", "password": "supersafepassword" } | { "username": "test", "email": "some@email.com", "created": true } |
| /login | POST | { "username": "test", "password": "supersafepassword" } | Bearer \ |

---
JWT Token required in `Authorization` Header:

| Route | Method | Request Body | Response |
|-------|--------|--------------|------------|
| /user | GET | - | { "username": "test", "fullName": "Test User", "emailAddress": "some@email.com" } |
| /user/changepassword | POST | { "oldPassword": "supersafepassword", "newPassword": "supersafepassword2" } | { "success": "true" } |