1

求助,项目要对接 keycloak,怎么用到高可用服务上啊?

 2 years ago
source link: https://www.v2ex.com/t/800217
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

我负责一个 Springboot rest 高可用服务,对接 keycloak 配置完后发现一个特别蛋疼的问题:

  1. 前端请求分发到一个 pod,keycloak 拦截器返回重定向到 keycloak 登录页,用户输账号密码登录
  2. 用户登录后前端请求到另一个 pod,结果 keycloak 又返回重定向了,虽然用户不用再次输账号密码,但是由于这个重定向,前端的页面会重新加载-_-!
  3. 打算换成 jtw 或者 oauth2,前端说不好改不愿意

顺带,这个 keycloak 的资料是真的少,太痛苦了

keycloak 配置

keycloak 配置

客户端配置

客户端配置

有没有对接过的大佬帮帮忙,谢谢了 明天 deadline 了,领导要吃人了


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK