Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • In <AM_HOME>/repository/conf/carbon.xml file, set <EnableEmailUserName>true</EnableEmailUserName>
  • In <AM_HOME>/repository/conf/api-manager.xml file, set

    Code Block
    languagehtml/xml
    <LoginConfig> 
             <UserIdLogin primary="true"> 
             <ClaimUri></ClaimUri> 
             </UserIdLogin> 
             <EmailLogin primary="false"> 
                 <ClaimUri>http://wso2.org/claims/emailaddress&lt;/ClaimUri> 
             </EmailLogin> 
    </LoginConfig> 
  • In <AM_HOME>/repository/conf/user-mgt.xml file, set

    Code Block
    languagehtml/xml
    <UserStoreManager class="org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager"> 
     ... 
       <Property name="IsEmailUserName">true</Property> 
       <Property name="UsernameWithEmailJavaScriptRegEx">[a-zA-Z0-9@._-|//]{3,30}$</Property> 
     ... 
    </UserStoreManager> 
Note

E-mail login does not work for any tenant including the super tenant if there are multiple tenants set up in your environment. This facility is currently only available in single tenant mode (i.e., users of the carbon.super tenant only).