WSO2 products can be configured to authenticate users using their attributes such as email or mobile number instead of the username. This topic provides instructions on how to set up your WSO2 product to authenticate a users by using their email.
The '@' is a special character in usernames of WSO2 products as it is used in multi-tenant environments to build the user's fully-qualified name. For example, user daniel from the tenant domain WSO2.com has the fully-qualified name [email protected]. So before using the email username we need to configure the WSO2 products to differentiate between the '@' symbol in the user's emails and usernames. For this we need to configure the carbon.xml file.
- Open the carbon.xml file in the following path:
Look for the commented out configuration
EnableEmailUserName. Uncomment the configuration to enable email authentication.
The next configuration file we need to modify is the user-mgt.xml which can be found in the path:
You may be connected to an LDAP or Active Directory or maybe to a JDBC-based user store. So regardless of the user store manager being used, focus on the following set of configuration parameters of the user store managers.
For this you need to set mail attribute of the user.
For this you need to use the mail attribute of the user instead of cn or uid.
For this you need to use the mail attribute of the user.
This parameter is used to speedup the LDAP search operations. You can comment out this config.
This property enables you to add special characters like "@" in the user name.