Keycloak-直接用户链接注册 [英] Keycloak - direct user link registration

查看:247
本文介绍了Keycloak-直接用户链接注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在本地计算机上使用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.

https://site.test/auth/realms/custom/login-actions/authenticate?client_id = test& tab_id = qIdW92Bvwmk

我阅读了以下内容

是的,只要您使用注册"而不是"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 -

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>

这篇关于Keycloak-直接用户链接注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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