WSO2 identity server email as username

后端 未结 2 616
我寻月下人不归
我寻月下人不归 2021-01-13 06:24

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

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 06:48

    Yes.. you can do it..

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

    true

    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.

    [a-zA-Z0-9@._-|//]{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..

    Step4. Restart the server

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

提交回复
热议问题