...
- In
<AM_HOME>/repository/conf/carbon.xml
file, set<EnableEmailUserName>true</EnableEmailUserName>
In
<AM_HOME>/repository/conf/api-manager.xml
file, setCode Block language html/xml <LoginConfig> <UserIdLogin primary="true"> <ClaimUri></ClaimUri> </UserIdLogin> <EmailLogin primary="false"> <ClaimUri>http://wso2.org/claims/emailaddress</ClaimUri> </EmailLogin> </LoginConfig>
In
<AM_HOME>/repository/conf/user-mgt.xml
file, setCode Block language html/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 |