Keycloak-直接用户链接注册 [英] Keycloak - direct user link registration
问题描述
我已经在本地计算机上使用Keycloak设置了一个Web应用程序.由于我使用Keycloak作为SSO实现,因此我希望在Web应用程序中单击 SIGNUP 按钮时,将用户定向到注册页面,而不要通过 LOGIN 页面
I have set up a web application with Keycloak in my local machine. Since Im using Keycloak as SSO implementation, I want in my web app that whenever SIGNUP button is click, user is directed into the registration page, and not going through the LOGIN page.
这是指向注册表格的示例URL,但是,它包含一个tab_id
,它像会话ID一样随机生成.
This is the example URL directed to the registration form, however, it contains a tab_id
that is generated randomly like a session id.
我阅读了以下内容
是的,只要您使用注册"而不是"auth"在里面
登录结束(AuthorizationEndpoint)URL
Yes, as long as you use the "registrations" instead of "auth" in the
end of login ( AuthorizationEndpoint ) URL 但是我在 https://site.test/auth中的端点/realms/custom/.well-known/openid-configuration 无法修改. 您可以将按钮链接更改为此格式- You can change the button link to this format - 这篇关于Keycloak-直接用户链接注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
推荐答案
http://<domain.com>/auth/realms/<realm-name>/protocol/openid-connect/registrations?client_id=<client_id>&response_type=code&scope=openid email&redirect_uri=http://<domain.com>/<redirect-path>&kc_locale=<two-digit-lang-code>