简体   繁体   English

无法在 keycloak 上查看登录页面

[英]Unable to view the Login Page on keycloak

I am working over integration of React application with KeyCloak.我正在研究 React 应用程序与 KeyCloak 的集成。 I have installed the keycloak server version 11.0.2 over my local machine.我已经在我的本地机器上安装了 keycloak 服务器版本 11.0.2。 I am able to access the administrative login and create the admin user.我能够访问管理登录并创建管理员用户。 I have also created a custom client and user with credentials using the keycloak.我还使用 keycloak 创建了一个带有凭据的自定义客户端和用户。 My react application is hosted over port 9000 of my machine and keycloak over 8080 (default) port.我的 react 应用程序托管在我机器的 9000 端口上,keycloak 托管在 8080(默认)端口上。 Now, when I am redirecting to my application URL it is automatically redirecting to the below url:现在,当我重定向到我的应用程序 URL 时,它会自动重定向到以下 URL:

http://localhost:8080/auth/realms/{Custom_realm}/protocol/openid-connect/auth?client_id={Custom_Client}&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2F&state=r8yy83fdgd-27f8-4aa9-a679-01sfdsgd9&response_mode=fragment&response_type=code&scope=openid&nonce=27fedfgf89-66be-4484-bbcc-aabb4saddc4 The url is rendering We are Sorry and not allowing me to enter the credentials required for the user. http://localhost:8080/auth/realms/{Custom_realm}/protocol/openid-connect/auth?client_id={Custom_Client}&redirect_uri=http%3A%2F%2Flocalhost%3A9000%2F&state=r8yy83fdgd-27f8-4aa9-a679 -01sfdsgd9&response_mode=fragment&response_type=code&scope=openid&nonce=27fedfgf89-66be-4484-bbcc-aabb4saddc4 网址正在呈现我们很抱歉,不允许我输入用户所需的凭据。

在此处输入图片说明

Not sure why is the login page not landing.不知道为什么登录页面没有登陆。 Can anyone help me out with this??谁能帮我解决这个问题?? Also provide the basic level of configurations required for Keycloak for integrating it with the application and creating a new Realm and client.还提供 Keycloak 所需的基本配置级别,以便将其与应用程序集成并创建新的 Realm 和客户端。

Issue was resolved.问题已解决。 There was a mismatch of the Realm name in the code as well as the one created in Keycloak.代码中的 Realm 名称与 Keycloak 中创建的名称不匹配。 In Keycloak I created UI_Realm while in code it was written as UI_realm在 Keycloak 中我创建了 UI_Realm 而在代码中它被写为 UI_realm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM