wso2is - Using Username and email as login in wso2 -


i followed document http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/ allow users login email id.but is mentioned if enable

<enableemailusername>true</enableemailusername> 

then users cannot login username or attribute other email.

our use case ldap secondary user store , in time provisioning.so need allow users login either email or username. there way achieve this.

you have follow this guide achieve this. following steps need follow.

step 1

configure ldap user store related configurations using user-mgt.xml file found in /repository/conf directory.

configure usernamesearchfilter helps search user object in ldap using both mail , uid attributes.

<property name="usernamesearchfilter">(&amp;(objectclass=person)(|(mail=?)(uid=?)))</property> 

disable userdnpattern property, if enabled.

<!--property name="userdnpattern">uid={0},ou=users,dc=wso2,dc=org</property-->  

the mail attribute has requirements unique. if using mail attribute, need open carbon.xml file found in /repository/conf directory , uncomment following. see here more information on email authentication.

<enableemailusername>true</enableemailusername>   

step 2

if want work multiple attributes (basically retrieve internal roles multiple attributes), must add following property in /repository/conf/user-mgt.xml file. can done once have installed wso2 identity server 5.0.0 along service pack.

 <property name="multipleattributeenable">true</property>  

step 3

to test this, restart identity server , try log in management console providing both mail , uid same password.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -