Revision 880b5def
Added by Serghei Mihai over 9 years ago
ckanext/ozwillo_pyoidc/plugin.py | ||
---|---|---|
119 | 119 |
Revokes the delivered access token. Logs out the user |
120 | 120 |
""" |
121 | 121 |
global CLIENT |
122 |
logout_url = str(CLIENT.end_session_endpoint)
|
|
122 |
logout_url = CLIENT.end_session_endpoint
|
|
123 | 123 |
org_url = toolkit.url_for(host=request.host, |
124 | 124 |
controller='organization', |
125 | 125 |
action='read', |
... | ... | |
136 | 136 |
# redirect to IDP logout |
137 | 137 |
logout_url += '?id_token_hint=%s&' % CLIENT.id_token |
138 | 138 |
logout_url += 'post_logout_redirect_uri=%s' % redirect_uri |
139 |
toolkit.redirect_to(logout_url) |
|
139 |
toolkit.redirect_to(str(logout_url)) |
Also available in: Unified diff
logout_url casted to string