Giter Site home page Giter Site logo

sky-sso's Introduction

可跨域单点登录系统

操作步骤
1.配置域名
    127.0.0.1 www.sso.com www.a.com www.b.com
2.demo步骤
    登录:
        a) 访问http://www.a.com:8087/resource/test (受保护资源则跳转到登录页面)
        b) 登录后跳回  resource/test 地址
        c) 访问http://www.b.com:8087/resource/test 直接可访问受保护资源
    登出:
        a) 访问http://www.a.com:8087/index/logout  退后会自动跳转登录页
        b) 访问http://www.b.com:8087/resource/test 因已经退出,跳转登录页
扩展自定义登录页
    仿照sso登录页表单即可
自定义退出下次登录后跳转页面
    http://www.a.com:8087/index/logout 此方法redirect页面增加loginSuccessUrl地址
自定义退出后跳转某个应用登录页面
    http://www.a.com:8087/index/logout 此方法redirect页面增加callback地址
集群
    修改sky-sso-client 存储器  ClientSessionStorage
原理
    仿照CAS登录流程

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.