我在本地成功地运行了KeyCloak网关,为Kubernetes仪表板提供Google身份验证。但是,使用相同的设置会导致当应用程序部署为集群本身中的一个吊舱时出现错误。
当网关在K8S吊舱中运行时,我看到的错误是:
unable to exchange code for access token {"error": "invalid_request: Credentials in post body and basic Authorization header do not match"}我使用以下选项调用网关:
--enable-logging=true
--enable-self-signed-tls=true
--listen=:443
--upstream-url=https://mydashboard
--discovery-url=https://accounts.google.com
--client-id=<client id goes here>
--client-secret=<secret goes here>
--resources=uri=/*将这些设置应用到一个容器中,我可以浏览到Gateway,然后重定向到Google登录,然后重定向回网关,在那里生成上面的错误。
如何解释在本地运行应用程序与在会产生上述错误的吊舱中运行应用程序之间的差异?
发布于 2018-12-10 06:30:24
这最终是复制/粘贴失败,客户端秘密是不正确的。错误信息在这里帮助不大,但至少它是一个简单的修复。
https://stackoverflow.com/questions/53700118
复制相似问题