bladex单点登录,部署到k8s环境中,系统间不能切换

K8S 已结 2 1117
15686819@qq.com
15686819@qq.com 2023-05-20 15:28
悬赏:10

一、该问题的重现步骤是什么?

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系统时候单点登录页面的信息:

image.png


问题:

1、单点登录A系统切换到B系统是否有如上四个参数就可以切换到B系统?如果还有缺少请问缺少的是哪些?

2、还有哪些资料可以参考?

2条回答
  •  15686819@qq.com
    2023-05-23 13:48

    1、部署之前最好是先测试原生的bladex所有功能是否有效。

    2、用了原生的auth在k8s中是没问题的

    3、最终单点登录只调整了配置,之前所有修改的部分都没要,就好了

    另外3.0.1单点登录退出功能做如下调整

    export function removeToken() {
               Cookies.remove('JSESSIONID')
               Cookies.remove('b-user-id')
        return Cookies.remove(TokenKey)
    }


提交回复