Skip to content

Commit

Permalink
Fix parse of the legacy_idm setting. See #12
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed Apr 16, 2018
1 parent e4b4f8b commit 5d50cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/oauth2/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d50cbc

Please sign in to comment.