omab/django-social-auth — Issue #241: Problems with associate and Github backend
Author: bradmontgomery
Created: 2012-02-06 06:03:51+00:00
State: open

I've been using django_social_auth for a while with google, facebook, and twitter backends, but I recently included the github backend and I've run into problems when associating an existing user with Github. However, initial login works well (I can log in with my github account and this creates a new User account).

Here are the steps I take to reproduce this (using v0.6.2):

1. Log in with an existing User account (using django's contrib.auth system)
2. Visit the `/associate/github/` url.
3. Authenticate with Github, which redirects me back to my site.

This ends with an `Authentication error: unknown error`.

It seems that the the logged in user is not getting passed into `social_auth.views.auth_complete` correctly, so it gets called with `user=None`. Additionally, `GithubAuth.data` seems to be empty as well.

Any ideas why this might be happening, and where I should look to track down what's going on? Thanks in advance!