Keycloak 自定义属性在编辑时验证 [英] Keycloak custom attrbiutes validation on edit

查看:32
本文介绍了Keycloak 自定义属性在编辑时验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的组织对注册字段的要求添加了一些自定义属性.已根据文档自定义主题并添加验证.它工作正常.我也可以通过修改帐户模板将这些属性添加到帐户管理页面.

I have added few custom attributes for my org's requirement to registration field. Have customized the theme and added validation as per the documentation. It works fine. I could add these attributes to account management page also by modifying the account template.

但是,我想添加在帐户管理下编辑这些自定义属性的功能以及此编辑操作的自定义验证逻辑.我无法参考文档.

However, I want to add capability to edit these custom attributes under account management as well as custom validation logic for this edit action. I can't get any reference to the documentation.

希望得到任何帮助.我在带有 Java 11 的 RHEL 7.9 操作系统上使用 Keycloak 12.0.2.

Would appreciate any help. I am using Keycloak 12.0.2 on RHEL 7.9 OS with Java 11.

推荐答案

我知道三个选项.

  • 您可以根据需要覆盖您的 Keycloak 源代码,但我不建议这样做,因为如果您更新源代码,使用新版本的 keycloak 会更困难.
  • 您可以在修改帐户模板时重新定位自定义验证.
  • 您可以编写全新的界面,不直接使用keycloak,您可以编写使用keycloak上的admin rest api的新后端.顺便说一下,您可以找到不同语言的keycloak admin api的适配器(对于Js:keycloak-admin)

这篇关于Keycloak 自定义属性在编辑时验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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