brainstain / jwt

Example Java Spring project with JWT, Spring Security, and Roles within the Token

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Boot Security Jwt Authentication

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

Technology Used

  1. Spring Boot (1.5.8.RELEASE)
  2. JWT (0.6.0)
  3. Mysql
  4. Java 1.8

Similar Post

You may be interested in other spring security articles:

Spring Boot Security OAUTH2 Example.

Spring Boot Security Basic Authentication

Spring Boot Security Hibernate Login

Securing Actuator Endpoints with Spring Security

About

Example Java Spring project with JWT, Spring Security, and Roles within the Token


Languages

Language:Java 90.9%Language:TSQL 9.1%