I am trying to incorporate oauth2 linkedin into my application using python-social-auth. However, when I go to 127.0.0.1:8000/login/linkedin/in Chrome, I get a "Backend not found" error. In particular, the following errors are displayed in the logs:
[08/Sep/2014 16:44:38] "GET /login/linkedin HTTP/1.1" 301 0 [08/Sep/2014 16:44:38] "GET /login/linkedin/ HTTP/1.1" 404 1608
I have the following code in my .py settings:
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'github_app', 'tech_seeker', 'social.apps.django_app.default' ) SOCIAL_AUTH_LINKEDIN_OAUTH2_KEY = "<MY_KEY_HERE>" SOCIAL_AUTH_LINKEDIN_OAUTH2_SECRET = "<MY_SECRET_HERE>" SOCIAL_AUTH_STRATEGY = 'social.strategies.django_strategy.DjangoStrategy' AUTHENTICATION_BACKENDS = ( 'social.backends.linkedin.LinkedinOAuth2', 'django.contrib.auth.backends.ModelBackend', ) SOCIAL_AUTH_PIPELINE = ( 'social.pipeline.social_auth.social_details', 'social.pipeline.social_auth.social_uid', 'social.pipeline.social_auth.auth_allowed', 'github_app.auth_pipeline.user' )
Any help is appreciated.
source share