keitaroinc / ckanext-cas Goto Github PK
View Code? Open in Web Editor NEWCAS (Central Authentication Service) client extension for CKAN
License: GNU Affero General Public License v3.0
CAS (Central Authentication Service) client extension for CKAN
License: GNU Affero General Public License v3.0
Hi,
It appears that the URL encoding is wrong when it is redirect to the CAS server.
From a disconnected user, make a simple request in CKAN, with special characters, something like "vélo".
This gives a redirect URL of https://publier.datasud.fr/signin?gateway=true&service=https://trouver.datasud.fr/cas/callback?next=/dataset?q%3Dv%25C3%25A9lo%26sort%3Dscore%2Bdesc%252C%2Bmetadata_modified%2Bdesc
CKAN retrieves an encoding string of https://trouver.datasud.fr/dataset?q=v%E9lo, I can't figure out if it comes from the cas plugin or mama-can itself...
Any clue ?
Thanks
Hi,
I think there is a tiny bug in the setup of db.py
When the existence of the index is checked, and it doesn't exist, it is then created :
index_names = [index['name'] for index in inspector.get_indexes("ckanext_cas_login")]
if not "ckanext_cas_login_ticket_id_idx" in index_names:
log.debug('Creating index for ckanext_cas_login')
Index("ckanext_cas_login_ticket_id_idx", cas_table.c.ckanext_cas_login_ticket_id).create()
but isn't the column name wrong here (ckanext_cas_login_ticket_id) ? the column itself is named ticket_id. and actually, the script does fail when the setup is run.
Best regards
Guillaume
When i log in cas, the ckan returns ssl error, how can i disable ssl or validate the key in ckan?
I had the following error:
SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)
Hello,
I've just installed the CAS plugin in my CKAN v.2.7.2, it went all fine.
When I try to login the CKAN redirects me to our CAS website, and the CAS after the login redirects to our CKAN, but we found a 500 error and other times a 302 with the message "The resource was found at https://THE CAS URL?gateway=true&service=THE CKAN URL/cas/callback?next=/cas/callback?next%3D%2F%26ticket%3DST-100-U3Dw5RSU3mf5rvla6Olx-www-pre.gobiernodecanarias.org; you should be redirected automatically."
In the log I always get the same error no differences between the 500 error and the 302.
Error - <class 'lxml.etree.XMLSyntaxError'>: Opening and ending tag mismatch: link line 23 and head, line 32, column 8
I don't know if it's about the response I'm getting from my CAS or if it's something related with the plugin, the CAS is running fine with other applications such as Redmine and GitLab.
In Redmine for example we don't need to map any attributes, I understand that using in the *.ini the following user mapping settings it should work.
ckanext.cas.user_mapping = email
email userusername
The error gives a really long stack.
[Fri Apr 13 10:20:51.446954 2018] [:error] [pid 4665] [remote 10.141.213.35:244] URL: https://myckanURLs.net/cas/callback?next=/&ticket=ST-91-7r9ItPQQPuBSFimnKKI6-www-MY-CAS-URL
[Fri Apr 13 10:20:51.447235 2018] [:error] [pid 4665] [remote 10.141.213.35:244] File '/usr/lib/ckan/default/lib/python2.7/site-packages/weberror/errormiddleware.py', line 171 in call
[Fri Apr 13 10:20:51.447417 2018] [:error] [pid 4665] [remote 10.141.213.35:244] app_iter = self.application(environ, sr_checker)
[Fri Apr 13 10:20:51.447574 2018] [:error] [pid 4665] [remote 10.141.213.35:244] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line 147 in call
[Fri Apr 13 10:20:51.447763 2018] [:error] [pid 4665] [remote 10.141.213.35:244] resp = self.call_func(req, *args, **self.kwargs)
[Fri Apr 13 10:20:51.447951 2018] [:error] [pid 4665] [remote 10.141.213.35:244] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/dec.py', line 208 in call_func
[Fri Apr 13 10:20:51.448127 2018] [:error] [pid 4665] [remote 10.141.213.35:244] return self.func(req, *args, **kwargs)
[Fri Apr 13 10:20:51.448283 2018] [:error] [pid 4665] [remote 10.141.213.35:244] File '/usr/lib/ckan/default/lib/python2.7/site-packages/fanstatic/publisher.py', line 234 in call
[Fri Apr 13 10:20:51.448433 2018] [:error] [pid 4665] [remote 10.141.213.35:244] return request.get_response(self.app)
[Fri Apr 13 10:20:51.448592 2018] [:error] [pid 4665] [remote 10.141.213.35:244] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py', line 1053 in get_response
[Fri Apr 13 10:20:51.448704 2018] [:error] [pid 4665] [remote 10.141.213.35:244] application, catch_exc_info=False)
[Fri Apr 13 10:20:51.448802 2018] [:error] [pid 4665] [remote 10.141.213.35:244] File '/usr/lib/ckan/default/lib/python2.7/site-packages/webob/request.py', line 1022 in call_application
Hi,
It's more a question than a real issue, but there is a annoying side effect of the user update on CAS login. Each time the user logs in every follower of its organization gets a notification about "User has updated his profile".
Is there a way to avoid sending a notification when you update the user ?
Thanks
Guillaume
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.