]> git.parisson.com Git - django-social-auth.git/commitdiff
Minor updates of settings and html.
authorStas Kravets <skravets@applebough.(none)>
Tue, 19 Apr 2011 13:33:54 +0000 (17:33 +0400)
committerStas Kravets <skravets@applebough.(none)>
Tue, 19 Apr 2011 13:33:54 +0000 (17:33 +0400)
example/local_settings.py.template
example/settings.py
example/templates/done.html
example/templates/home.html

index 6c1b2a6c408bbcde8de4d9ae448200a4ea13ff59..0f8e6e8e3e467ddecd8ef489ea5b81cfbdb291d9 100644 (file)
@@ -15,5 +15,8 @@ SOCIAL_AUTH_COMPLETE_URL_NAME     = 'complete'
 LOGIN_ERROR_URL                   = '/login/error/'
 VKONTAKTE_APP_ID                  = ''
 VKONTAKTE_APP_SECRET              = ''
+ODNOKLASSNIKI_OAUTH2_CLIENT_KEY   = ''
+ODNOKLASSNIKI_OAUTH2_APP_KEY      = ''
+ODNOKLASSNIKI_OAUTH2_CLIENT_SECRET = ''
 #SOCIAL_AUTH_USER_MODEL            = 'app.CustomUser'
 SOCIAL_AUTH_ERROR_KEY             = 'socialauth_error'
index 6218525d77eeb8fc9db64093d1f9c7c3bae918ac..4fd4c14baee73752ccfbfc64dcc7908e85d08468 100644 (file)
@@ -73,6 +73,7 @@ AUTHENTICATION_BACKENDS = (
     'social_auth.backends.contrib.livejournal.LiveJournalBackend',
     'social_auth.backends.contrib.vkontakte.VKontakteBackend',
     'social_auth.backends.contrib.yandex.YandexBackend',
+    'social_auth.backends.contrib.odnoklassniki.OdnoklassnikiBackend',
     'django.contrib.auth.backends.ModelBackend',
 )
 
index 11a1aca9ed2a41458d7e3f9f250602a05a689c59..6dab979fb8c253092e381d7c6a2aa0a1d36e52e1 100644 (file)
@@ -44,6 +44,8 @@
     <li>
       <a rel="nofollow" href="{% url associate_begin "google-oauth2" %}">Google OAuth2</a>
       {% if google_oauth2 %}<span class="disconnect">(<a href="{% url disconnect "google-oauth2" %}">disconnect</a>)</span>{% endif %}
+         <li><a rel="nofollow" href="{% url associate_begin "odnoklassniki" %}">Odnoklassniki OAuth 2.0</a></li>
+         {% if odnoklassniki %}<span class="disconnect">(<a href="{% url disconnect "odnoklassniki" %}">disconnect</a>)</span>{% endif %}
     </li>
   </ul>
 
index 48ec11f7a586cede6ed703f17ac26db552440659..f5b3360970f05a139d8844082089d95bf86e39be 100644 (file)
@@ -18,6 +18,7 @@
   <h3>Login using <a href="http://tools.ietf.org/html/draft-ietf-oauth-v2-10" title="OAuth2">OAuth2</a> from:</h3>
   <ul>
     <li><a rel="nofollow" href="{% url begin "google-oauth2" %}">Google OAuth2</a></li>
+       <li><a rel="nofollow" href="{% url begin "odnoklassniki" %}">Odnoklassniki OAuth 2.0</a></li>
   </ul>
 </div>
 
     <li>
       <form action="{% url begin "yandex" %}" method="post">{% csrf_token %}
         <div>
-          <label for="openid_ya_user">Yandex user:(optional)</label>
+          <label for="openid_ya_user">Yandex user(optional):</label>
           <input id="openid_ya_user" type="text" value="" name="openid_ya_user" />
           <input type="submit" value="Login"/>
         </div>
       </form>
     </li>
+       <li><a rel="nofollow" href="{% url begin "yandex" %}">Yandex OpenID 2.0</a></li>
     <li>
       <form action="{% url begin "openid" %}" method="post">{% csrf_token %}
         <div>
@@ -61,7 +63,6 @@
   <h3>Login using other authentication systems:</h3>
        <ul>
                <li><a rel="nofollow" href="{% url begin "vkontakte" %}">VKontakte OpenAPI</a></li>
-               <li><a rel="nofollow" href="{% url begin "yandex" %}">Yandex OpenID 2.0</a></li>
        </ul>
 </div>
 {% endblock %}