Browse files

Docs example for account disconnect. Refs #758

  • Loading branch information...
1 parent 81c6920 commit 7234ede6d68ec413221817232f5be855a4600328 @omab committed Sep 2, 2013
Showing with 10 additions and 1 deletion.
  1. +10 −1 doc/configuration.rst
@@ -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 %}">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).

0 comments on commit 7234ede

Please sign in to comment.