omab/django-social-auth — pull request #722 by gardaud (2013-06-29 04:46:00+00:00)
Title: Add option to revoke tokens on disconnect

This adds a setting, SOCIAL_AUTH_REVOKE_TOKENS_ON_DISCONNECT, which when set to True will revoke the OAuth tokens for the backends which implement a `revoke` method.

Currently only Google+ and Facebook are implemented. This can actually not be done with all providers; for example Twitter doesn't support it: https://dev.twitter.com/discussions/14902

On the other hand some providers *require* that you do this as part of implementing their login, for example Google+ : https://developers.google.com/+/web/signin/#revoking_access_tokens_and_disconnecting_the_app