WSO2 身份服务器电子邮件作为用户名 [英] WSO2 identity server email as username

查看:25
本文介绍了WSO2 身份服务器电子邮件作为用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在评估 WSO2 身份服务器.我们想使用电子邮件地址作为用户名.默认情况下,用户名是 30 个字符,不够长.它必须同时支持两者.和@ 在用户名中.有没有办法配置这个?用户存储是一个JDBC(Mysql).

We are currently evaluating the WSO2 Identity server. We want to use email address as an username. By default the username is 30 characters, it is not long enough. And it must support both . and @ in the username. Is there an way to configure this? The user store is a JDBC(Mysql) one.

谢谢

推荐答案

是的..你可以做到..

Yes.. you can do it..

第一步.打开 IS_HOME/repository/conf 中的 carbon.xml 并取消注释

Step1. Open carbon.xml in IS_HOME/repository/conf and uncomment

true

步骤 2.在 IS_HOME/repository/conf 中打开 user-mgt.xml 并取消注释 JDBC 配置

Step2. Open user-mgt.xml in IS_HOME/repository/conf and uncomment JDBC configurations

org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager

评论默认的 LDAP 用户存储管理器配置.

Comment default LDAP user store manager configurations.

org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager

步骤 3.请在 org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager 配置下添加以下属性.

Step3. Please add following property under the org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager configurations.

[a-zA-Z0-9@._-|//]{3,30}$

使用上述属性,您可以更改电子邮件地址的格式...默认情况下,它必须大于 3 个字符且小于 30 个字符,但您可以根据需要进行配置..

Using above property, you can change the pattern of your email address... By default it must be more than 3 characters and less then 30, But you can configure it as you wish..

第四步.重启服务器

您可以从 此处找到有关使用电子邮件用户名的更多详细信息.这篇文章清楚地说明了一切.

You can find more details on using email username from here. This article clearly explain all.

这篇关于WSO2 身份服务器电子邮件作为用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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