Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to Fiware IDM v7.0.0 #13

Closed
emepetres opened this issue May 9, 2018 · 3 comments
Closed

Can't connect to Fiware IDM v7.0.0 #13

emepetres opened this issue May 9, 2018 · 3 comments

Comments

@emepetres
Copy link

I'm getting the following error when coming back from the IDM v7:

400 Client Error: Bad Request for url: http://portal.mso4sc.eu:3000/user?access_token=9214c92dcfad473623730a73fe076998095bb50b

I tested with the older version of the IDM, v5.4.0, and it works, but I need it to be working with the v7.

This is the log produced by ckan:

ckan          | 2018-05-09 17:09:11,121 DEBUG [ckanext.oauth2.plugin] identify
ckan          | 2018-05-09 17:09:11,122 WARNI [ckanext.oauth2.plugin] The user is not currently logged...
ckan          | 2018-05-09 17:09:11,124 DEBUG [ckanext.oauth2.plugin] login
ckan          | 2018-05-09 17:09:11,126 DEBUG [ckanext.oauth2.oauth2] Challenge: Redirecting challenge to page http://portal.mso4sc.eu:3000/oauth2/authorize?response_type=code&client_id=b07e803c-8f1d-4717-8e00-e169a5f368af&redirect_uri=http%3A%2F%2F10.38.3.3%3A5000%2Foauth2%2Fcallback&scope=all_info&state=eyJjYW1lX2Zyb20iOiAiL2Rhc2hib2FyZCJ9
ckan          | 2018-05-09 17:09:11,346 INFO  [ckan.lib.base]  /user/login render time 0.229 seconds
ckan          | 2018-05-09 17:09:11,977 DEBUG [ckanext.oauth2.plugin] identify
ckan          | 2018-05-09 17:09:11,978 WARNI [ckanext.oauth2.plugin] The user is not currently logged...
ckan          | 2018-05-09 17:09:12,119 INFO  [ckan.lib.base]  /oauth2/callback render time 0.146 seconds
ckan          | 2018-05-09 17:09:12,397 DEBUG [ckanext.oauth2.plugin] identify
ckan          | 2018-05-09 17:09:12,398 WARNI [ckanext.oauth2.plugin] The user is not currently logged...
ckan          | 2018-05-09 17:09:12,463 INFO  [ckan.lib.base]  / render time 0.267 seconds
ckan          | 2018-05-09 17:09:12,846 DEBUG [ckanext.oauth2.plugin] identify
ckan          | 2018-05-09 17:09:12,847 WARNI [ckanext.oauth2.plugin] The user is not currently logged...
ckan          | 2018-05-09 17:09:12,853 DEBUG [ckanext.oauth2.plugin] identify
ckan          | 2018-05-09 17:09:12,854 WARNI [ckanext.oauth2.plugin] The user is not currently logged...
ckan          | 2018-05-09 17:09:12,856 INFO  [ckan.lib.base]  /api/i18n/en render time 0.007 seconds
@aarranz
Copy link
Member

aarranz commented May 10, 2018

Hi @emepetres!

Sorry for not answering you before and save you the work done in pull request #14. Current stable version of the plugin (the one installable using pip) is not compatible with KeyRock v7, but latest version on the repo should be. We need to make some changes on the documentation and fix some backward compatibility problems (e.g. #12) before releasing it. So I recommend you to try to install the current master version from github and give it a try.

Let us know if this solves your problems.

Cheers.

@emepetres
Copy link
Author

emepetres commented May 11, 2018

Hi, glad to know. I tested master branch on ckan 2.7.2 and seems to be working!

However I'm getting the following error, though it doesn't seem to affect (below).

BTW, master branch should be working with ckan 2.8?

ckan          | 2018-05-11 08:35:27,543 DEBUG [ckanext.oauth2.plugin] Init OAuth2 extension
ckan          | 2018-05-11 08:35:27,945 DEBUG [ckanext.oauth2.plugin] Setting up the redirections to the OAuth2 service
db            | 2018-05-11 08:35:28.029 UTC [118] ERROR:  relation "user" does not exist at character 465
db            | 2018-05-11 08:35:28.029 UTC [118] STATEMENT:  SELECT "user".password AS user_password, "user".id AS user_id, "user".name AS user_name, "user".openid AS user_openid, "user".fullname AS user_fullname, "user".email AS user_email, "user".apikey AS user_apikey, "user".created AS user_created, "user".reset_key AS user_reset_key, "user".about AS user_about, "user".activity_streams_email_notifications AS user_activity_streams_email_notifications, "user".sysadmin AS user_sysadmin, "user".state AS user_state
db            |         FROM "user"
db            |         WHERE "user".name = 'default' OR "user".id = 'default' ORDER BY "user".name
db            |          LIMIT 1
db            | 2018-05-11 08:35:43.420 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:44.623 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:44.716 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:44.729 UTC [119] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:44.750 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:44.854 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:45.217 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:45.307 UTC [119] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:45.476 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:45.489 UTC [119] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:46.011 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:46.017 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:46.099 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:46.298 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:46.323 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:46.663 UTC [119] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:47.375 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:49.189 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:49.467 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:49.475 UTC [119] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:49.567 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:49.589 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:49.934 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:49.985 UTC [119] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:50.005 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:50.018 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:50.431 UTC [120] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:50.436 UTC [120] WARNING:  there is no transaction in progress
db            | 2018-05-11 08:35:50.449 UTC [119] WARNING:  there is already a transaction in progress
db            | 2018-05-11 08:35:50.452 UTC [119] WARNING:  there is no transaction in progress

@aarranz
Copy link
Member

aarranz commented May 11, 2018

The plugin is not being tested on CKAN 2.8 (it has been released only two days ago) so I cannot confirm it being working on that version. Maybe your problem it is related to that particular version of CKAN. I will analyse it.

I think this ticket can be closed, as KeyRock v7 support seems to be working. Anyway, feel free to reopen it.

@aarranz aarranz closed this as completed May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants