Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' into psa2

  • Loading branch information...
commit e2701ee471d5745245d593d49356f9cae287828e 2 parents 99dce58 + 7234ede
Matías Aguirre authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 doc/configuration.rst
11 doc/configuration.rst
View
@@ -512,7 +512,16 @@ social accounts for a given backend (not really useful IMO)::
Or to disconnect individual accounts::
- {% url "socialauth_disconnect_individual" "backend-name" backend-id %}
+ {% url "socialauth_disconnect_individual" "backend-name" association_id %}
+
+For example, given a ``UserSocialAuth`` instance under the name ``social`` in
+templates context, you can create a link to disconnect that association with::
+
+ <a href="{% url "socialauth_disconnect_individual" social.provider social.id %}">Disconnect {{ social.provider }}</a>
+
+or disconnect all association for given provider with::
+
+ <a href="{% url "socialauth_disconnect" social.provider %}">Disconnect {{ social.provider }}</a>
You can set SOCIAL_AUTH_REVOKE_TOKENS_ON_DISCONNECT to True if you wish to revoke
tokens on disconnect (only some backends support this).
Please sign in to comment.
Something went wrong with that request. Please try again.