wagnerdelima / drf-social-oauth2

drf-social-oauth2 makes it easy to integrate Django social authentication with major OAuth2 providers, i.e., Facebook, Twitter, Google, etc.
https://drf-social-oauth2.readthedocs.io/en/latest/
MIT License
271 stars 34 forks source link

Customised User Model with 'email' as USERNAME_FIELD #150

Closed lucaleoni73 closed 1 year ago

lucaleoni73 commented 1 year ago

I'm working with drf-social-oauth2 to implement both social login and credentials login. I customised the UserModel by removing the username and specifying the email field inside USERNAME_FIELD. I also customised the UserManager and the auth_back (extending from ModelBackend). Still when I try to call /token to generate a new set of token I receive back the response saying that the Request is missing the username parameter. How to do I change this parameter to set it as the email?

wagnerdelima commented 1 year ago

Unfortunately, I can't help you given that this is not an issue with drf-social-oauth2. I do not have a way to reproduce it. Why are you calling /token and not /convert-token?