Authenticate using user attributes

Hi. I would like to know if it is possible to authenticate a user with either his/her mobile number which is already added in user attributes. I understand that user identification can be done by username or email address by default.
Thanks to advise.