一、该问题的重现步骤是什么?
nginx配置
server {
listen 8100;
server_name auth;
location / {
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffering off;
proxy_pass http://gcip-auth:8100;
}
}
2. website.js
// 第三方系统授权地址
authUrl: 'http://localhost/blade-auth/oauth/render',
// 报表设计器地址(cloud端口为8108,boot端口为80)
reportUrl: 'http://localhost:8108/ureport',
// 单点登录系统认证(blade-auth服务的地)
ssoUrl: 'http://192.168.3.46:8100/oauth/authorize?client_id=saber&response_type=code&redirect_uri=',
// 单点登录回调地址(Saber服务的地址)
redirectUri: 'http://192.168.3.46:9085',
//需要单点登录的aicc的登录页面
aiccSsoUrl: 'http://192.168.3.46:8100/oauth/authorize?client_id=aicc&response_type=code&redirect_uri=http://192.168.3.46:9086',
3.定制化部分
由于是多系统调用,弹出部分的页面省略了,都是直接设置值进去

4、页面跳转流程
目前系统是先登录基础平台 http://192.168.3.46:9085,然后自动跳转到 (sso)http://192.168.3.46:8100/oauth/login,
登录基础平台,之后再从基础平台跳转到aicc,目前本地不通过nginx的时候,跳转能正常,但是通过nginx,就经常跳转不过去,偶尔几次能跳转,
不知道从什么思路去检查。
扫一扫访问 Blade技术社区 移动端