如何在 wso2 中为用户名恢复配置自定义声明属性?

How do you configure custom claim attributes for username recovery in wso2?

根据 WSO2 文档 (https://docs.wso2.com/display/IS570/Username+Recovery),我们可以为用户名恢复添加额外的属性。我选择了一个属性,它显示在用户名恢复表单中,但它似乎没有用于搜索过滤器来查找帐户。

它似乎可以正确使用的唯一字段是电子邮件。不幸的是,我需要包含一个附加属性来区分帐户。

我缺少什么才能让它工作?

如果您使用的是 WSO2 身份服务器 5.7,据报道issue. It has been fixed in IS-5.9 onwards. You can patch the fix by applying the changes in 2,让它在 IS-5.7

中工作

1 -https://github.com/wso2/product-is/issues/6158

2 -https://github.com/wso2/carbon-identity-framework/pull/2380