if no access_token for current client, redo sso

This commit is contained in:
Serghei Mihai 2015-02-26 15:43:07 +01:00
parent 528cd65d35
commit 838dc9f3da
1 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,9 @@ class OpenidController(base.BaseController):
redirect_uri = org_url + '/logout'
if not hasattr(client, 'access_token'):
self.sso(g.name)
# revoke the access token
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
data = 'token=' + client.access_token