From: Stas Kravets Date: Tue, 19 Apr 2011 13:33:54 +0000 (+0400) Subject: Minor updates of settings and html. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fdd379c021de6794019d88965764e87bf7453ff7;p=django-social-auth.git Minor updates of settings and html. --- diff --git a/example/local_settings.py.template b/example/local_settings.py.template index 6c1b2a6..0f8e6e8 100644 --- a/example/local_settings.py.template +++ b/example/local_settings.py.template @@ -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' diff --git a/example/settings.py b/example/settings.py index 6218525..4fd4c14 100644 --- a/example/settings.py +++ b/example/settings.py @@ -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', ) diff --git a/example/templates/done.html b/example/templates/done.html index 11a1aca..6dab979 100644 --- a/example/templates/done.html +++ b/example/templates/done.html @@ -44,6 +44,8 @@
  • Google OAuth2 {% if google_oauth2 %}(disconnect){% endif %} +
  • Odnoklassniki OAuth 2.0
  • + {% if odnoklassniki %}(disconnect){% endif %} diff --git a/example/templates/home.html b/example/templates/home.html index 48ec11f..f5b3360 100644 --- a/example/templates/home.html +++ b/example/templates/home.html @@ -18,6 +18,7 @@

    Login using OAuth2 from:

    @@ -38,12 +39,13 @@
  • {% csrf_token %}
    - +
  • +
  • Yandex OpenID 2.0
  • {% csrf_token %}
    @@ -61,7 +63,6 @@

    Login using other authentication systems:

    {% endblock %}