Extension Oauth2Waad


Extension Basics

Title
Oauth2Waad
Name
ckanext-oauth2waad
Type
Public extension
Description
Login to your CKAN site using Windows Azure Active Directory's OAuth 2.0
CKAN versions
Download-Url (zip)
Last commit
11 years ago (2014-12-16 16:21:16)
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

ckanext-oauth2waad

Build Status

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

Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
resource_proxy stats datastore oauth2waad Add the following settings to the
CKAN Settings (ckan.ini)
# 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>
DB migration to be executed
(not set)
<< back to Extensions