I am trying to integrate django-social-auth in my django application that runs on the google engine.
I am trying to implement google-oauth2 and facebook oauth using django-social-auth.
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '377490210257-****' SOCIAL_AUTH_GOOGLE_OAUTH2_CLIENT_SECRET = '***********' SOCIAL_AUTH_FACEBOOK_APP_ID = '******' SOCIAL_AUTH_FACEBOOK_SECRET = 'xxxx' AUTHENTICATION_BACKENDS = ( 'social_auth.backends.facebook.FacebookBackend', 'social_auth.backends.google.GoogleOAuth2Backend', 'django.contrib.auth.backends.ModelBackend', )
When I try to login via google oauth , I get the following error:
TooManyRedirects at /complete/google-oauth2/ Exceeded 30 redirects.
When I try to login via facebook auth , I get the following error:
HTTPError at /complete/facebook/ 400 Client Error: Bad Request
I'm not sure if there is any other configuration that needs to be done to run it.
Since the google application does not have django-social-auth as a library, I had to manually put all the libraries in the source folder.
source share