"""Login complete view, displays user data"""
names = request.user.social_auth.values_list('provider', flat=True)
return render_to_response('done.html',
- dict((name.lower(), True) for name in names),
+ dict((name.lower().replace('-', '_'), True)
+ for name in names),
RequestContext(request))
def error(request):
-import sys
-import random
-import os
from os.path import abspath, dirname, basename, join
DEBUG = True
AUTHENTICATION_BACKENDS = (
'social_auth.backends.TwitterBackend',
'social_auth.backends.FacebookBackend',
+ 'social_auth.backends.GoogleOAuthBackend',
'social_auth.backends.GoogleBackend',
'social_auth.backends.YahooBackend',
'social_auth.backends.OpenIDBackend',
</div>
<div>
- <h3>Associate new credentials:</h3>
+ <h3>Associate new OAuth credentials:</h3>
<ul>
<li>
<a rel="nofollow" href="/associate/twitter/">Twitter</a>
<a rel="nofollow" href="/associate/orkut/">Orkut</a>
{% if orkut %}<span class="associated">(associated)</span>{% endif %}
</li>
+ <li>
+ <a rel="nofollow" href="/associate/google-oauth/">Google</a>
+ {% if google_oauth %}<span class="associated">(associated)</span>{% endif %}
+ </li>
+ </ul>
+
+ <h3>Associate new OpenID credentials:</h3>
+ <ul>
<li>
<a rel="nofollow" href="/associate/google/">Google</a>
{% if google %}<span class="associated">(associated)</span>{% endif %}
<li><a rel="nofollow" href="/login/twitter/">Twitter</a></li>
<li><a rel="nofollow" href="/login/facebook/">Facebook</a></li>
<li><a rel="nofollow" href="/login/orkut/">Orkut</a></li>
+ <li><a rel="nofollow" href="/login/google-oauth/">Google OAuth</a></li>
</ul>
</div>