Git Product home page Git Product logo

spring-boot-security-with-redis-jwt-for-restapi-webapp's Introduction

Build Status

Demo

https://youtu.be/YwP1v1VYZes

Demo

Description

If you start a new project, you will be concerned about security.

Typically, web projects often require you to create both a website and a restful apI at the same time.

This sample project satisfies both website security and restful apI security.

Take a look at it now.

보통 웹 프로젝트를 구성할 경우, Web Application 을 먼저 생성합니다. (웹 사이트 우선이라고 생각하면 편합니다)

웹 사이트 구성이 완료된 후, 안드로이드와 아이폰 클라이언트 작업을 시작할 때, 따로 Rest API 를 만들지 않고

미리 생성한 Web Application 에서 Rest API 를 제공하는 것이 작업을 줄여주기 때문입니다.

위와같이 작업을 할 경우 보안작업이 나뉘어서 진행되게 됩니다.

웹 사이트의 경우 다음과 같은 기본 기능들이 필요합니다. (기본적인것만 나열해보겠습니다.)

  1. Form Login or Ajax Login
  2. Remember-Me
  3. Session Management
  4. Authentication with role(authority)
  5. CSRF Protection

Restful API 의 경우 다음의 기능들이 필요합니다. (기본적인것만 나열해보겠습니다.)

  1. Token Authentication
  2. CORS
  3. Authentication with role(authority)

둘다 공통으로 사용하는 것도 있지만 가장 중요한 인증방식은 조금씩 다릅니다.

그러므로, 둘 다 기능에 맞게 구현해 줘야 합니다.

해당 프로젝트는 가장 기본적인 두 기능을 모두 제공합니다.

Requirements

Watch Out!

  • Update host and port in application.yml for Redis.

Run

mvn spring-boot:run

spring-boot-security-with-redis-jwt-for-restapi-webapp's People

Contributors

okihouse avatar

Watchers

 avatar  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.