conwetlab / ckanext-oauth2

OAuth2 support for CKAN
GNU Affero General Public License v3.0
25 stars 56 forks source link

Log in does not redirect to Oauth2 Login site #36

Closed mmourino closed 4 years ago

mmourino commented 4 years ago

Hello, I have installed 0.9.0 CKAN from source with datapusher and datastore extensions on Python3 and all was good. However, I tried to install the Oauth2 ckan extension and I have found problems. I downloaded the git repository with git clone (v0.7.0 branch) and then do "python setup.py develop" on ckanext-oauth2 directory. It was good. I included the oauth2 plugin in ckan.plugins in "ckan.ini" file and all the oauth2 variables:

ckan.oauth2.authorization_endpoint = http://localhost:18000/controlpanel/oauth/authorize ckan.oauth2.token_endpoint = http://localhost:18000/controlpanel/oauth/token ckan.oauth2.profile_api_url = http://localhost:21000/oauth-server/user ckan.oauth2.client_id = ckan.oauth2.client_secret = ckan.oauth2.scope = openid ckan.oauth2.rememberer_name = auth_tkt ckan.oauth2.profile_api_user_field = principal ckan.oauth2.profile_api_mail_field = email ckan.oauth2.authorization_header = Authorization

(I have the Oauth Server up in my local host). But when I go to my ckan instance (http://localhost:5000) and press the Log in button, it does not redirects me to the login page of my oauth server. Instead, it redirects me to ckan Log in page.

What am I doing wrong? May I have to edit the who.ini file?

Thank you.