Using Email Address as the Username
Note!
Configuring the email address as the username in an already running Identity Server is not the production recommended way. Therefore, make sure to configure it before you begin working with WSO2 IS.
Open the <
PRODUCT_HOME>/repository/conf/carbon.xmlfile.Look for the commented out configuration
EnableEmailUserName. Uncomment the configuration to enable email authentication.<EnableEmailUserName>true</EnableEmailUserName>Open the <
IS_HOME>/repository/conf/claim-config.xmlfile and configure theAttributeIDproperty of thehttp://wso2.org/claims/usernameclaim ID that is under<Dialect dialectURI="http://wso2.org/claims">tomail.<Claim> <ClaimURI>http://wso2.org/claims/username</ClaimURI> <DisplayName>Username</DisplayName> <AttributeID>mail</AttributeID> <Description>Username</Description> </Claim>Open the
<IS_HOME>/repository/conf/identity/identity-mgt.propertiesfile and set the following property totrue.UserInfoRecovery.UseHashedUserNames=trueOptionally, you can also configure the following property to determine which hash algorithm to use.
UserInfoRecovery.UsernameHashAlg=SHA-1Configure the following set of parameters in the user store configuration, depending on the type of user store you are connected to (LDAP/Active Directory/ JDBC).
Restart the server.
For more information on how to configure primary and secondary user stores, see Configuring User Stores.