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 mu
Here's the official doc on this: https://docs.wso2.com/display/IS500/Email+Authentication
By default '@' is interpreted as a special character to build full qualified usernames for multi-tenant environments. So you'll need to configure the server to interpret otherwise.
Yes.. you can do it..
Step1. Open carbon.xml in IS_HOME/repository/conf and uncomment
<EnableEmailUserName>true</EnableEmailUserName>
Step2. Open user-mgt.xml in IS_HOME/repository/conf and uncomment JDBC configurations
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager
And
Comment default LDAP user store manager configurations.
org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager
Step3. Please add following property under the org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager
configurations.
<Property name="UsernameWithEmailJavaScriptRegEx">[a-zA-Z0-9@._-|//]{3,30}$</Property>
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..
Step4. Restart the server
You can find more details on using email username from here. This article clearly explain all.