I've been using the module requesting a token with a username and password for the password grant_type. Is there anyway to simply allow login with either the username OR the email address?

If not, can it be easily patched to include that functionality? Are there any plans to do so?

The reason why I'm asking this is that my Drupal install allows for both email or username registration/login and I would like to make the OAuth procedure equivalent.

Comments

joum created an issue. See original summary.

joum’s picture

Can anyone provide any insight on this issue?

joum’s picture

Category: Support request » Feature request
e0ipso’s picture

Status: Active » Closed (won't fix)

The best way to achieve this is to have the users in your site to have their email address as their username.

tipit’s picture

That would be nice and the question was username OR email. :)

joum’s picture

I ended up using the https://www.drupal.org/project/email_registration in tandem with the Simple OAuth module.

Not exactly what I was going for initially, but managed to make it work as intended.

ptmkenny’s picture

There are patches available for Email Registration now to implement this; I'm linking to the related issue.