'Attempts to revoke permissions for provider.'

def revoke_token(self, drop_token=True):

    if ('access_token' in self.tokens):
        success = self.get_backend().revoke_token(self.tokens['access_token'], self.uid)
        if (success and drop_token):
            self.extra_data.pop('access_token', None)
            self.save()
