How can I allow both username and email address during login with Crowd in Spring?

How can I configure crowd with spring so that I can allow both username & email address during user login?

1 answer

1 accepted

Accepted Answer
0 votes

You'd have to subclass (or copy paste & modify) one or more of the existing Crowd spring integration classes to do a search to find users by email if no user was found when searching by username.

Note that the integration (and the rest of Crowd) doesn't allow logging in with email by default because Crowd doesn't enforce unique email addresses across applications (which would be tricky to do because an application can have multiple directories, some of which may contain the same user with the same email under different usernames - currently that's legal but it would be ambiguous if we tried to enforce email uniqueness).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

132 views 6 8
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you