Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techprimers/jwt-security-example
Spring Boot with Spring Security using JWT
https://github.com/techprimers/jwt-security-example
jwt spring-boot spring-security
Last synced: 6 days ago
JSON representation
Spring Boot with Spring Security using JWT
- Host: GitHub
- URL: https://github.com/techprimers/jwt-security-example
- Owner: TechPrimers
- Created: 2017-08-29T20:20:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T13:06:25.000Z (over 5 years ago)
- Last Synced: 2023-11-07T18:25:01.899Z (about 1 year ago)
- Topics: jwt, spring-boot, spring-security
- Language: Java
- Size: 50.8 KB
- Stars: 170
- Watchers: 10
- Forks: 172
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Security using JWT (Json Web Token) in Spring Boot
This Project uses JWT to secure the REST endpoints.
The Following are the REST end points available in the example.
- `/token` - Generates the JWT token based on the JSON sent. Its a POST method which expects the JSON: `{ "username": "name", "id": 123, "role": "admin"}`
- `/rest/hello` - Requires a JWT Token with Header `key - "Authorisation"` and `value - "Token "`