Keycloak 和 Cloudflare 的问题
我正在运行一个网站,并使用 Keycloak 对其进行保护,同时还运行 Cloudflare。
所有登录表单、注册表单等均由 Keycloak 使用,因此我会从我的网站重定向到 Keycloak,反之亦然。
现在,除了注销之外,所有这些都工作得很好。因此,在安全网站上,注销时我会重定向到 Keycloak 的 URL:
https://my-keycloak.com/auth/realms/my-realm-name/protocol/openid-connect/logout?redirect_uri=https://my-site.com
出于某种原因,Cloudflare 给我一个 520 错误。我读过《Cloudflare 故障排除》,这里似乎没有一个常见原因适用,因为如果没有 Cloudflare,这也可以正常工作。
排查 - 5xx
Cloudflare问题 上面链接上的 5xx 列表确实与这里发生的情况有关。我检查了注销(没有 Cloudflare),在最终登陆登录表单之前只有几个 302 重定向。
还有其他人遇到过类似的问题吗?什么可能导致这种情况?
I'm running a web site and I secured it with Keycloak, with running Cloudflare as well.
All the login forms, registration forms etc. are used by Keycloak, so I do redirections from my site to Keycloak and vice versa.
Now all of this works perfectly fine, except for logging out. So, on the secured web site, on logout I redirect to Keycloak's URL:
https://my-keycloak.com/auth/realms/my-realm-name/protocol/openid-connect/logout?redirect_uri=https://my-site.com
For some reason, Cloudflare gives me a 520 Error. I've read on Troubleshooting Cloudflare and none of the usual causes seem applicable here, as, without Cloudflare, this works fine.
Troubleshooting Cloudflare - 5xx
Nothing from the 5xx list on the above link really is related to what happens here. I've inspected the logout (without Cloudflare) and it's just few 302 redirections before landing on a login form in the end.
Has anyone else experienced similar issues? What could cause this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论