A CKAN Extension for Azure Active Directory authentication using MSAL, compatible with CKAN 2.10 and based on a previous extensión here: ONGOV We just change the authentication flow a bit and use the default new session handler library from CKAN 2.10
MSAL
To install ckanext-msal:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-msal Python package into your virtual environment:
git clone https://github.com/davilla41/un-ckan-msal.git cd un-ckan-msal/ python setup.py develop pip install -r requirements.txt
Add
un-ckan-msal
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
).Create and name a file msal_config.py. You can use this template: msal_config.py and replace the generic values with your specific credentials. Put this new file in the same hierarchy than plugin.py file.
Restart CKAN. For example if you've deployed CKAN on Ubuntu:
sudo service supervisor restart