Coder Social home page Coder Social logo

sso-demo's Introduction

sso-demo

基于 sa-token 实现单点登录系统

step

  1. edit C:\Windows\System32\drivers\etc\hosts
    添加域名映射记录到hosts中
127.0.0.1 sso-server.com
127.0.0.1 sso-client-system1.com
127.0.0.1 sso-client-system2.com
  1. 访问http://sso-client-system1.com:17001/ 页面显示未登录

    点击登录按钮,跳转到sso-server认证中心
  2. 重定向到sso-server认证中心

    输入帐号密码点击登录,认证成功后会回跳到sso-client-system1应用
  3. 此时回跳到sso-client-system1应用,sso-client-system1应用自身认证通过,回显登录成功
  4. 访问http://sso-client-system2.com:17002/ 页面显示未登录
    点击登录按钮,跳转到sso-server认证中心,此时sso-server检测到登录态,携带ticket直接回跳回来
  5. 页面回跳回来,sso-client-system2应用自身解析出ticket参数,再调用认证中心的检测ticket接口校验,检测完成后认证成功,页面回显登录成功

sso-demo's People

Contributors

netbuffer avatar

Watchers

 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.