DEV Community

Cover image for Django Social Apps Authentication

Django Social Apps Authentication

Hana Belay on August 31, 2021

When websites ask us to login into their website to use their services, how many of us get tired of filling out credentials? Well, I know I do :) N...
Collapse
 
niwaha profile image
Edwin Niwaha

Thank you so much,
Blessings!

Collapse
 
kakakaeng profile image
kakaKaeng

This help me a lot.
Thank you.

Collapse
 
earthcomfy profile image
Hana Belay

I am happy you found it useful. Thanks

Collapse
 
aysu2425 profile image
Aysu Gafarli

Hello I'm sorry but how could you manage the google api part?

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
 
samira4237 profile image
samira

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

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
 
vincenttommi profile image
Vincent Tommi

2025 still here and learning.