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
- Host: GitHub
- URL: https://github.com/cedrickring/spring-boot-auth-service
- Owner: cedrickring
- License: apache-2.0
- Created: 2019-05-12T09:12:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T20:57:30.000Z (about 4 years ago)
- Last Synced: 2025-02-06T13:31:55.821Z (over 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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" } |