version upgrade for ckan2.9
liquanyong305 opened this issue · comments
Hello everyone
We use Ckan2.9.4 to develop our project, but ckan-oauth2 only supports 2.7 or 2.8.
Do you have any plans to upgrade version for ckan2.9?
Thanks a lot for the work you have done on this plugin.
Please test and give feedback to #46.
@nisha-nec See #42.
Hi @frafra
Thanks for the information.
I tried but the code changes as per the CKANv2.9.x.
I tested it on CKANv2.10.1, in this version, Authentication logic to use [Flask-login] instead of repoze.who.
Do you have updated code. ?
Any help will be appreciated.
@nisha-nec I use this one with CKAN 2.9: https://github.com/NINAnor/ckanext-oauth2/tree/aeae71acd20dffd49a3eb7b084a32523859b3212
@frafra yes, in 2.9 it will work fine, but from CKAN 2.10, Repoze has been replaced for flask-login and this includes several changes:
- Login is now handled by user_login function (instead of set_repoze_user)
- auth_tkt cookie has been deprecated since it was being set by Repoze
@nisha-nec Sorry for the misunderstanding. As you can see, no one seems interested in supporting OAuth2 on newer CKAN. Someone needs to pick up the PR for 2.9, fix the remaining issues, then merge the PR (or fork the repository), and then focus on the 2.10.