Giter Club home page Giter Club logo

dalalsunil1986 / spring-security-jwt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from only2dhir/spring-security-jwt

0.0 0.0 0.0 12 KB

In this article, we will be creating a sample REST CRUD APIs and provide JWT role based authorization using spring security to these APIs. We will be using spring boot 2.0 and JWT 0.9.0. In the DB, we will have two roles defined as ADMIN and USER with custom UserDetailsService implemented and based on these roles the authorization will be decided. We will be using spring data to perform our CRUD operations and spring provided annotations such as @PreAuthorize, @Secured and @EnableGlobalMethodSecurity for authorization.

Home Page: http://www.devglan.com/spring-security/jwt-role-based-authorization

Java 93.76% TSQL 6.24%

spring-security-jwt's Introduction

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

The complete explanation can be found on my blog here - Spring Boot Security JWT Authentication

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

spring-security-jwt's People

Contributors

only2dhir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.