I'm using python social auth to implement google login on my app. But I get the following error
Error: invalid_client The OAuth client was not found.
I've tried adding a product name same as my project name and email address. But I still get this error
My redirect uri in google developer console:
http://localhost:8000/complete/google-oauth2/
login.html
a href="{% url 'social:begin' 'google-oauth2' %}?next={{ index }}"> | Login with Google</a>
settings.py
AUTHENTICATION_BACKENDS = ( 'social.backends.facebook.FacebookOAuth2', 'social.backends.twitter.TwitterOAuth', 'social.backends.google.GoogleOAuth2', 'django.contrib.auth.backends.ModelBackend', ) SOCIAL_AUTH_GOOGLE_OAUTH_KEY = '' SOCIAL_AUTH_GOOGLE_OAUTH_SECRET = ''
score:8
Accepted answer
Proper names for the variables in the settings
file must be:
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = ''
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = ''
Credit To: stackoverflow.com
Related Query
- python social auth: Google login Error: invalid_client
- Python Social Auth- import error when using Google Authentication
- force google to refresh token via python social auth
- Invalid JSON Payload error with python google sheets API
- Python Social Auth Error
- Python Social Auth Django template example
- how to get user email with python social auth with facebook and save it
- is not JSON serializable - django social auth Facebook login
- Python Social auth authentication via access-token fails
- django-rest-auth: social login with google
- How do I handle exceptions on Python Social Auth
- Get access token from Python Social Auth
- Use Python social auth to only get tokens
- How to have unique emails with Python social auth
- Decide when to refresh OAUTH2 token with Python Social Auth
- Python Social Auth NotAllowedToDisconnect at /disconnect/facebook/1/
- Python Social Auth for Django raises Authforbidden exception
- Session state missing in python social auth
- redirect to last page not working on python social auth
- Django Social Auth Debug HTTP Error 400: Bad Request (linkedin)
- Python Social Auth multiple scopes extra data
- python social auth and django, email empty with Facebook api 2.4
- django-allauth Social Network Login Failure with Facebook and Google
- django-allauth google integration gives "Social Network Login Failure" error
- Python Social Auth duplicating e-mails for different users
- Facebook Doesn't Return Email Python Social Auth
- AttributeError: 'DjangoStrategy' object has no attribute 'backend' python social auth
- use python / django to let users login to my site using their google credentials
- Python social auth in Django, makemigrations detects no changes
- Django Social Auth w/ Twitter: HTTP 401 Error (Unauthorized)
More Query from same tag
- Django REST: Auth user is not passed to the serialiser error - Field is required
- Invoking django tests in subdirectories
- Is there anyway to get the current object in has_permission method while calling DetailView in Django CBV
- Django Tastypie include count on many-to-many fields
- Application crash upon receiving a notification
- How to detect language with tag in Django CMS
- Loading data from a (MySQL) database into Django without models
- Django-Haystack: 'NoneType' object has no attribute '_default_manager'
- How do Django Fixtures handle ManyToManyFields?
- AJAX feedback form using django crispy forms in Bootstrap Modal
- data from views.py to Django forms
- How can I use a Sekizai javascript block in a Django template filter?
- Django "No Patterns" / Circular Import Error
- Django: create HTML input array using a django form
- django.db.utils.OperationalError: (2013, "Lost connection to MySQL server at 'handshake: reading inital communication packet', system error: 0")