From 5d50cbc9ffce0fe64bce29d355e4359731f0e9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Arranz?= Date: Mon, 16 Apr 2018 18:10:22 +0200 Subject: [PATCH] Fix parse of the legacy_idm setting. See #12 --- ckanext/oauth2/oauth2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/oauth2/oauth2.py b/ckanext/oauth2/oauth2.py index dab3de6..86b1e3a 100644 --- a/ckanext/oauth2/oauth2.py +++ b/ckanext/oauth2/oauth2.py @@ -55,7 +55,7 @@ def __init__(self): self.verify_https = os.environ.get('OAUTHLIB_INSECURE_TRANSPORT', '') == "" - self.legacy_idm = six.text_type(config.get('ckan.oauth2.legacy_idm', '')).strip().lower() == "false" + self.legacy_idm = six.text_type(config.get('ckan.oauth2.legacy_idm', '')).strip().lower() == "true" self.authorization_endpoint = config.get('ckan.oauth2.authorization_endpoint', None) self.token_endpoint = config.get('ckan.oauth2.token_endpoint', None) self.profile_api_url = config.get('ckan.oauth2.profile_api_url', None)