changes to make ckan-wotkit authentication work in CKAN2.2