From 880b5defac4ae3fbfef76244b9775e25efd7bdec Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Tue, 10 Feb 2015 11:13:34 +0100 Subject: [PATCH] logout_url casted to string --- ckanext/ozwillo_pyoidc/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckanext/ozwillo_pyoidc/plugin.py b/ckanext/ozwillo_pyoidc/plugin.py index 8b2a8d8..00b9129 100755 --- a/ckanext/ozwillo_pyoidc/plugin.py +++ b/ckanext/ozwillo_pyoidc/plugin.py @@ -119,7 +119,7 @@ class OpenidController(base.BaseController): Revokes the delivered access token. Logs out the user """ global CLIENT - logout_url = str(CLIENT.end_session_endpoint) + logout_url = CLIENT.end_session_endpoint org_url = toolkit.url_for(host=request.host, controller='organization', action='read', @@ -136,4 +136,4 @@ class OpenidController(base.BaseController): # redirect to IDP logout logout_url += '?id_token_hint=%s&' % CLIENT.id_token logout_url += 'post_logout_redirect_uri=%s' % redirect_uri - toolkit.redirect_to(logout_url) + toolkit.redirect_to(str(logout_url))