https://github.com/developer-guy/securing-springboot-with-jwts
Sample project based on Springboot and Jwt
https://github.com/developer-guy/securing-springboot-with-jwts
jwt springboot
Last synced: 10 months ago
JSON representation
Sample project based on Springboot and Jwt
- Host: GitHub
- URL: https://github.com/developer-guy/securing-springboot-with-jwts
- Owner: developer-guy
- Created: 2017-09-11T10:04:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-11T10:32:37.000Z (over 8 years ago)
- Last Synced: 2025-02-06T11:19:54.049Z (12 months ago)
- Topics: jwt, springboot
- Language: Java
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# SpringBoot Securing Routes With JWT :rocket:
This project is a sample for using Spring Security with JWT.For more information you can check this page :
https://auth0.com/blog/securing-spring-boot-with-jwts/
- [x] If you want to test without starting application , please start our test : **`./mvnw test`**
- [x] In the other hand if you start the application using : **`./mvnw spring-boot:run`**
- [x] first you send post request to login then take your token , after that you will get your users by using this token .
**`curl -v -H "Content-Type: application/json" -X POST -d '{"username":"admin","password":"password"}' http://localhost:8080/login`**
**`curl -H "Accept: application/json" -H "Authorization: Bearer token_value" -X GET http://localhost:8080/users | json_pp `**