Giter VIP home page Giter VIP logo

loginmodule's Introduction

LoginModule

此项目是根据token机制实现的登录权限校验,因为在分布式环境中不适合使用session来保存用户登录状态而且微服务架构需要的是无状态的服务。 项目基于Spring Boot+MyBatis,Redis,MySQL,可用于其他项目,使用maven工具打包。 项目中使用的是Spring的Interceptor来拦截指定的需要权限验证的请求。通过校验用户id和token来实现登录权限验证。 用于权限验证的信息可以放在请求头或者cookie中,token存在Redis中,通过对比Redis中的token来实现轻量级的可靠认证,适合分布式环境。 token会定期更新持久化到MySQL中。

loginmodule's People

Contributors

xixixijin avatar

Watchers

 avatar

loginmodule's Issues

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.