https://github.com/lucasdiasjorge/jwt-token-in-spring
Working with JWT token in SpringBoot, users with roles.
https://github.com/lucasdiasjorge/jwt-token-in-spring
api jwt-authorization jwt-token spring-boot spring-security
Last synced: 29 days ago
JSON representation
Working with JWT token in SpringBoot, users with roles.
- Host: GitHub
- URL: https://github.com/lucasdiasjorge/jwt-token-in-spring
- Owner: LucasDiasJorge
- Created: 2022-12-29T20:29:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T22:08:07.000Z (about 3 years ago)
- Last Synced: 2025-01-24T14:17:40.366Z (over 1 year ago)
- Topics: api, jwt-authorization, jwt-token, spring-boot, spring-security
- Language: Java
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## API routes
#### Login
```http
Post http://localhost:8080/login
```
+ Request (application/json)
+ Body
{
"email": "personal@email.com",
"pass": "somehashorsomething123"
}
+ Response 200 (application/json)
+ Body
{
"Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
eyJhcHAiOiIzNDhlNTM4MzQ2M2Y3MzZjMGExZTJhNTFmNjYwZjA5NCIsInN1YmRvbWluaW8iOiJleGVtcGxvIiwiY2xpZW50IjoiMTU0ZDZlZGQ4YmQzMDEwYzQ4NjBkN2E5Y
zk1NzNmYmVmZTUyNGRlZiJ9.JJNs0bFtGOtwyJy_r-eefsvkd387M_x7zpucE1m4WIw"
}