[英]How to use Identity Server WSO2 for authentication and authorization of a web application
[英]How to use both username and mail in authentication Wso2 Identity Server using JDBCUserStore primary userstore
我正在尝试将用户名和邮件都配置为身份验证参数。 因此,用户可以使用用户名或邮件登录。 我可以通过替换以下配置在ReadWriteLDAPUserStoreManager中实现此目的
<Property name="UserNameSearchFilter">(&(objectClass=person)(|(mail=?)(uid=?)))</Property>
。
但是在JDBCUserStoreManager中。 我找不到任何配置。 在这方面需要帮助
谢谢
为了使用电子邮件地址作为用户名,你必须取消注释<EnableEmailUserName>true</EnableEmailUserName>
在carbon.xml文件配置。
添加此项将使用户能够通过其电子邮件地址进行身份验证。 但这不会阻止用户名用户注册和登录。 但此后,您将必须使用完全限定的用户名。 例如。 admin@carbon.super
john@gmail.com@tenant.com
默认的用户管理配置不允许您在注册用户时使用@
。 因此,请通过添加@
符号更改user-mgt.xml文件的regex文件。 例如。 a-zA-Z0-9@
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.