This is a sample project to provide example on how to add JWT token authentication in a spring boot application. The example uses maven as a build tool and also sample script to run on application startup so that anybody can get started by simply running Application.java
Based on DevGlan's code and blog found here: The complete explanation can be found on my blog here - Spring Boot Security JWT Authentication
This library adds roles into the JWT
- Spring Boot (1.5.8.RELEASE)
- JWT (0.6.0)
- Mysql
- Java 1.8
You may be interested in other spring security articles:
Spring Boot Security OAUTH2 Example.
Spring Boot Security Basic Authentication