一、该问题的重现步骤是什么?
1. bladex单点登录,部署到k8s环境中,系统间不能切换
A系统 B系统
单点登录A系统成功后,再链接到B系统,系统切换不到B系统
正常Nginx部署的情况下可以,同样配置到k8s,Nginx部署一致的情况下不能切换过去
系统报错:
Execute SQL : select client_id, CONCAT('{noop}', client_secret) as client_secret, resource_ids , scope, authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity , refresh_token_validity, additional_information, autoapprove from blade_client where client_id = 'aicc'
Execute Time: 0.532ms
============== Sql End ==============
org.springframework.security.authentication.InsufficientAuthenticationException: User must be authenticated with Spring Security before authorization can be completed.
at org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize(AuthorizationEndpoint.java:158)
切换到B系统时候单点登录页面的信息:
问题:
1、单点登录A系统切换到B系统是否有如上四个参数就可以切换到B系统?如果还有缺少请问缺少的是哪些?
2、还有哪些资料可以参考?
请问k8s环境blade-auth服务部署了几个,你先尝试部署一个看看是否能正常跳转。
现在的信息还是有点少,不太好判断。
另外你抛开k8s,就用jar跑两个blade-auth服务,然后用nginx做个反向代理,看看能不能正常跳转。
1、部署之前最好是先测试原生的bladex所有功能是否有效。
2、用了原生的auth在k8s中是没问题的
3、最终单点登录只调整了配置,之前所有修改的部分都没要,就好了
另外3.0.1单点登录退出功能做如下调整
export function removeToken() {
Cookies.remove('JSESSIONID')
Cookies.remove('b-user-id')
return Cookies.remove(TokenKey)
}
扫一扫访问 Blade技术社区 移动端