Extension Persona


Extension Basics

Title
Persona
Name
ckanext-persona
Type
Public extension
Description
A CKAN extension for logging in using Mozilla Persona, allowing users to authenticate with their existing email address without creating a new username and password.
CKAN versions
Download-Url (zip)
Last commit
11 years ago (2014-11-09 21:09:05)
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

ckanext-persona

A CKAN extension that lets users login to your CKAN site using Mozilla Persona. Users can login using just their existing email address, without having to create a new user name and password for CKAN.

Traditional username and password login and registration are still enabled when this plugin is active, the user is given the choice of Persona or traditional login.

For screenshots and details about how it works, see the blog post (http://seanh.cc/posts/ckanext-persona/).

Installation

ckanext-persona has been tested against CKAN 2.3 development version.

To install, activate your CKAN virtualenv and then do:

git clone 'https://github.com/ckan/ckanext-persona.git'
cd ckanext-persona
python setup.py develop

Then add ‘persona’ to the ckan.plugins line in your CKAN config file, for example:

ckan.plugins = resource_proxy stats datastore persona

Also make sure you have ckan.site_url set correctly in your config file.

Finally, restart your web server.

Todo

  • Handle multiple users with the same email address in CKAN
  • Generate better unique user names based on emails
  • Give the user a chance to change the generated username before their account is created
  • Verify SSL certificates
  • Implement CSRF protection
  • Tests
  • Better error handling when verification fails
  • Implement logging-in via Persona without JavaScript
Version
0.1
Version release date
2014-11-09
Contact name
Sean Hammond
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Add ‘persona’ to ckan.plugins. Make sure ckan.site_url is set correctly.

Plugins to configure (ckan.ini)
persona
CKAN Settings (ckan.ini)
# No specific environment variables documented
DB migration to be executed
(not set)
<< back to Extensions