-
Choerodon平台版本: 0.14.0
-
遇到问题的执行步骤:
-
文档地址:
-
环境信息(如:节点信息):
k8s master -
报错日志:
2019-03-15 17:08:24.235 INFO 1 — [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2019-03-15 17:08:58.408 INFO 1 — [ XNIO-3 task-4] o.s.s.o.p.e.AuthorizationEndpoint : Handling OAuth2 error: error=“invalid_grant”, error_description=“Invalid redirect: http://c7n.dhpx.net/ does not match one of the registered values: [http://c7n.example.choerodon.io]”
2019-03-15 17:08:59.712 INFO 1 — [ XNIO-3 task-7] o.s.s.o.p.e.AuthorizationEndpoint : Handling OAuth2 error: error=“invalid_grant”, error_description=“Invalid redirect: http://c7n.dhpx.net/ does not match one of the registered values: [http://c7n.example.choerodon.io]”
2019-03-15 17:09:00.728 INFO 1 — [ XNIO-3 task-8] o.s.s.o.p.e.AuthorizationEndpoint : Handling OAuth2 error: error=“invalid_grant”, error_description=“Invalid redirect: http://c7n.dhpx.net/ does not match one of the registered values: [http://c7n.example.choerodon.io]”
2019-03-15 17:09:01.746 INFO 1 — [ XNIO-3 task-5] o.s.s.o.p.e.AuthorizationEndpoint : Handling OAuth2 error: error=“invalid_grant”, error_description=“Invalid redirect: http://c7n.dhpx.net/ does not match one of the registered values: [http://c7n.example.choerodon.io]”
2019-03-15 17:09:35.297 INFO 1 — [ XNIO-3 task-3] o.s.s.o.p.e.AuthorizationEndpoint : Handling ClientRegistrationException error: No client found : gitlab
2019-03-15 17:09:41.622 INFO 1 — [ XNIO-3 task-6] o.s.s.o.p.e.AuthorizationEndpoint : Handling ClientRegistrationException error: No client found : gitlab
2019-03-15 17:09:42.662 INFO 1 — [ XNIO-3 task-11] o.s.s.o.p.e.AuthorizationEndpoint : Handling ClientRegistrationException error: No client found : gitlab
2019-03-15 17:09:43.384 INFO 1 — [ XNIO-3 task-10] o.s.s.o.p.e.AuthorizationEndpoint : Handling ClientRegistrationException error: No client found : gitlab -
原因分析:
提出您分析问题的过程,以便我们能更准确的找到问题所在
-
疑问:
提出您对于遇到和解决该问题时的疑问
有人能帮我看下吗
你好,根据报错信息提示,你在执行这一步的时候忘记替换url了
解决方式:参考客户端
文档将url改正确即可 https://choerodon.io/zh/docs/user-guide/system-configuration/tenant/client/
确实是忘记替换了,我修改了,但还是报错。
现在到登录界面后,输入账号密码后直接报错:
OAuth Error
error=“invalid_grant”, error_description=“Invalid redirect: http://c7n.dhpx.net/ does not match one of the registered values: [http://c7n.example.choerodon.io]”
这个情况的话 就得去数据库里面改了哈
iam_service
数据库中oauth_client
表,把里面的url改成正确的就好了哈
好的,非常感谢。