1. EnableEmailUserName in carbon.xml
<EnableEmailUserName>true</
2. Then provide the correct regex to allow email address in user store configuration in user-mgt.xml for JDBC user store
<Property name="UsernameJavaRegEx">[a-
<AdminUser>
<UserName>admin@wso2.com</
<Password>admin</Password>
</AdminUser>
By the above configurations, it will enable email address. </AdminUser>
If you want to give the both support, email address and username, you can include the below property in user store configuration.
4. <Property name="
To know how to do this for a LDAP, refer this well explained
blog post [1] done for Identity server which is applicable for other carbon products as well. This document
also explains the properties [2]
That is a very good post . Exactly ,the requirement, i am having currently . i have posted my question in stackoverflow ( https://stackoverflow.com/questions/60150158/provided-authorization-grant-is-invalid-error-while-trying-to-login-a-dockeriz?noredirect=1#comment106389486_60150158 ) . I need to login using both username and email . login using username is working, but login using email is not working. Could you please suggest me how to resolve the issue ? I am using JDBC and not LDAP .
ReplyDelete