ckanext-oauth2waad

A CKAN extension that lets you log in to a CKAN site using
Windows Azure Active Directory’s implementation of OAuth 2.0.
Traditional username-and-password registration and login are still enabled when
this plugin is active, the user is given the choice of Azure or traditional
login.
Installation
ckanext-oauth2waad has been tested against the CKAN 2.3 development version.
To install, activate your CKAN virtualenv and then do:
git clone 'https://github.com/ckan/ckanext-oauth2waad.git'
cd ckanext-oauth2waad
python setup.py develop
pip install -r requirements.txt
Add oauth2waad to the ckan.plugins line in your CKAN config file, for
example:
ckan.plugins = resource_proxy stats datastore oauth2waad
Add the following settings to the [app:main] section of your config file:
[app:main]
ckanext.oauth2waad.client_id = <YOUR_CLIENT_ID>
ckanext.oauth2waad.redirect_uri = <YOUR_REDIRECT_URI>
ckanext.oauth2waad.auth_endpoint = https://login.windows.net/<YOUR_TENANT_ID>/oauth2/authorize
ckanext.oauth2waad.auth_token_endpoint = https://login.windows.net/<YOUR_TENANT_ID>/oauth2/token
ckanext.oauth2waad.resource = <YOUR_RESOURCE_URL>
ckanext.oauth2waad.csrf_secret = <YOUR_SECRET_KEY>
ckanext.oauth2waad.servicetoservice.auth_token_endpoint = https://login.windows.net/<SERVICE_TO_SERVICE_TENANT_ID>/oauth2/token
ckanext.oauth2waad.servicetoservice.client_id = <YOUR_CLIENT_ID_FOR_SERVICE_TO_SERVICE_REQUESTS>
ckanext.oauth2waad.servicetoservice.client_secret = <YOUR_CLIENT_SECRET_FOR_SERVICE_TO_SERVICE_REQUESTS>
ckanext.oauth2waad.servicetoservice.resource = <YOUR_RESOURCE_FOR_SERVICE_TO_SERVICE_REQUESTS>
The value for the ckanext.oauth2waad.csrf_secret setting should