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
274 stars 34 forks source link

MissingClientId Error #127

Closed SebastianHurtado98 closed 2 years ago

SebastianHurtado98 commented 2 years ago

I am trying to use social login for a mobile app in swift and I get a MissingClientId error despite having the complete JSON.

As you can see in the image, I'm using the access token from google.

I am pretty new to swift, it may be an error related to my code and not the package. I tested the backend using Postman and the same data and everything works fine.

WhatsApp Image 2022-05-06 at 4 27 35 PM

SebastianHurtado98 commented 2 years ago

At some point between views.ConvertTokenView.post and oauth2_grants.SocialTokenGrant.validate_token_request the client_id goes from my google client id to None. If I send (from Swift) the parameters as url parameters instead of a json body the error goes away.

wagnerdelima commented 2 years ago

Hi @SebastianHurtado98

Apologies for the delay. I am happy you managed to solve the issue. This is definitely Swift-related.