DEV Community

Discussion on: Django Social Apps Authentication

Collapse
 
mwila profile image
Moses mwila

Hi Hannah, great work on the series. I have managed to implement the social authentication. GitHub is working fine except for Google am getting this error
"Error 400: redirect_uri_mismatch

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.
"

Any ideas on how i can resolve this?

Collapse
 
earthcomfy profile image
Hana Belay • Edited

Thanks for the support.

Have you registered the redirect URI in the API console?

In the authorized redirect URIs section put this as a URI localhost:8000/oauth/complete/goog...

Collapse
 
mwila profile image
Moses mwila

Welcome and Yes i did.
Thank you.

Thread Thread
 
earthcomfy profile image
Hana Belay

Did it work?

Thread Thread
 
mwila profile image
Moses mwila

Yes it did.

Collapse
 
samira4237 profile image
samira

Hi.
I had the same issue.
I changed localhost:8000 to 127.0.01:8000/ and it worked.