Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

wujunxi/sso-test

Repository files navigation

单点登录测试 sso-test

单点登录Node.js实现,使用了express框架及pug模板,用nginx作为反向代理服务器。

node version > 7.0

Host配置

127.0.0.1 www.a.com
127.0.0.1 www.b.com
127.0.0.1 www.c.com

Nginx 配置

    # www.a.com
    server {
      listen 80;
      server_name www.a.com;

      location / {
        proxy_pass http://127.0.0.1:8080/;
      }
    }

    # www.b.com
    server {
      listen 80;
      server_name www.b.com;

      location / {
        proxy_pass http://127.0.0.1:8081/;
      }
    }

    # www.c.com
    server {
      listen 80;
      server_name www.c.com;

      location / {
        proxy_pass http://127.0.0.1:8082/;
      }
    }

时序图

(时序图使用了http://webchart.ihuhai.cn/ 画的)

单点登录-未登录时序图 单点登录-已登录时序图

About

单点登录测试

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published