Keycloak:找不到客户端异常? [英] Keycloak : Client not found exception?

查看:402
本文介绍了Keycloak:找不到客户端异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了Keycloak服务器,并且一切都在服务器计算机上运行良好,但是当我尝试将Keycloak与本地计算机(本地主机)集成时,我会得到

I setup Keycloak server and everything run fine in server machine,But when i tried to integrate Keycloak with local machine(localhost) i am getting

很抱歉,找不到客户端.

We're sorry ... Client not found.

即使我检查了本地计算机的IP地址并添加到Keycloak->Clients->Settings->Valid Redirect URIs中,即使我遇到相同的异常也是如此.

Even i check my local machine ip address and added in Keycloak->Clients->Settings->Valid Redirect URIs even then i am getting same exception.

推荐答案

错误消息表明客户端ID和客户端应用程序的领域与Keycloak服务器上配置的客户端不匹配.

The error message indicates that the client ID and the realm of your client application don't match the configured clients on the Keycloak server.

请检查确切的(区分大小写)拼写. 客户端ID (在 Keycloak->客户端->设置中)需要匹配客户端上的资源名称 (在领域设置->常规中)需要与客户端上的 realm 匹配.

Please check the exact (case-sensitive) spelling. Client ID (in Keycloak -> Clients -> Settings) need to match resource on your client and the Name (in Realm Settings -> General) needs to match realm on your client.

您还可以转到 Client-> Installation-> Format JSON 并查看JSON配置.我将其简化为两个相关条目.

You can also go the Client -> Installation -> Format JSON and look at the JSON configuration. I reduced it to the two relevant entries.

{
  "realm": "...",
  "resource": "...",
  ...
}

这篇关于Keycloak:找不到客户端异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆