From 1ea80026b1ca3a8db601b3371b1625e408e95e7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Aguirre?= Date: Tue, 15 May 2012 17:34:48 -0300 Subject: [PATCH] Mention SOCIAL_AUTH_LAST_LOGIN setting. Refs #348 --- README.rst | 8 +++++++- doc/configuration.rst | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index f185e05..de123f4 100644 --- a/README.rst +++ b/README.rst @@ -397,6 +397,12 @@ Configuration SOCIAL_AUTH_REDIRECT_IS_HTTPS = True +- The name of the last backend used to login is stored as a string in the + session under the key ``social_auth_last_login_backend``, the key can be + customized by defining this setting:: + + SOCIAL_AUTH_LAST_LOGIN = 'social_auth_last_login_backend' + Some settings can be tweak by backend by adding the backend name prefix (all uppercase and replace ``-`` with ``_``), here's the supported settings so far:: @@ -1353,4 +1359,4 @@ Base work is copyrighted by: .. _Mail.ru OAuth: http://api.mail.ru/docs/guides/oauth/ .. _Odnoklassniki OAuth: http://dev.odnoklassniki.ru/wiki/display/ok/The+OAuth+2.0+Protocol .. _authentication for VKontakte applications: http://www.ikrvss.ru/2011/11/08/django-social-auh-and-vkontakte-application/ -.. _Facebook Canvas Application Authentication: http://www.ikrvss.ru/2011/09/22/django-social-auth-and-facebook-canvas-applications/ \ No newline at end of file +.. _Facebook Canvas Application Authentication: http://www.ikrvss.ru/2011/09/22/django-social-auth-and-facebook-canvas-applications/ diff --git a/doc/configuration.rst b/doc/configuration.rst index 532b0a0..b6e418f 100644 --- a/doc/configuration.rst +++ b/doc/configuration.rst @@ -285,6 +285,12 @@ Configuration SOCIAL_AUTH_REDIRECT_IS_HTTPS = True +- The name of the last backend used to login is stored as a string in the + session under the key ``social_auth_last_login_backend``, the key can be + customized by defining this setting:: + + SOCIAL_AUTH_LAST_LOGIN = 'social_auth_last_login_backend' + Some settings can be tweak by backend by adding the backend name prefix (all uppercase and replace ``-`` with ``_``), here's the supported settings so far:: -- 2.39.5