Skip to main content

This is a generic and reusable python implementation of Mozilla Persona Identity Provider <https://developer.mozilla.org/en-US/Persona/Identity_Provider_Overview>.

Project description

https://pypip.in/v/persona-idp/badge.png https://pypip.in/d/persona-idp/badge.png Build Status https://pypip.in/license/persona-idp/badge.png

This is a generic and reusable python implementation of Mozilla Persona Identity Provider.

This module is used on our production servers and authenticates users against our internal Active Directory controller.

See also BrowserID specification for more details.

Installation

Either:

$ git clone https://github.com/dpaw2/persona-idp
$ cd persona-idp
$ python setup.py install

or:

$ pip install persona-idp

Usage

Please, modify at least the secret and rsa_key (unless you want to have serious security issues):

$ cat wsgi.py
from persona_idp.idp import PersonaIDP

application = PersonaIDP(rsa_key='/etc/apache2/certs/private.pem',
                         secret='my123secret',
                         provision_template='/tmp/provision.txt')

and:

$ gunicorn --workers=2 wsgi:application

or:

$ echo 'WSGIScriptAlias /persona /var/www/persona/wsgi.py' >> \
>   /etc/apache2/conf.d/persona.conf

Examples

See the examples/ folder.

Tests

$ python setup.py test

Help

Join the dpaw mailing list, or read the archives, at

http://groups.google.com/group/dpaw

Issues

Use our github issue tracker, at

https://github.com/dpaw2/persona-idp/issues

Contribute

$ git clone https://github.com/dpaw2/persona-idp
$ python setup.py develop
We prefer patches submitted via pull requests, at

https://github.com/dpaw2/persona-idp/pulls

Acknowledgements

This work is based on previous work of @djc and his persona-totp.

Project details


Release history Release notifications | RSS feed

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

persona_idp-0.9.tar.gz (15.0 kB view details)

Uploaded Source

File details

Details for the file persona_idp-0.9.tar.gz.

File metadata

  • Download URL: persona_idp-0.9.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for persona_idp-0.9.tar.gz
Algorithm Hash digest
SHA256 fd2e550586ea838010a6e88a48351e33ab59e801233755575c92ca595ca3fabb
MD5 bf5e24a48f8ec2e5d9a45f2ccf086404
BLAKE2b-256 0edb63655b83b7e342ba120f94cddcf438667873820fae85b9d01e2db09b8c98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page