Skip to main content
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.

Metadata

Release files for persona-idp 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for persona-idp 0.9
File Size Uploaded
persona_idp-0.9.tar.gz 15.0 kB Details

Release files / persona_idp-0.9.tar.gz

Download URL persona_idp-0.9.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fd2e550586ea838010a6e88a48351e33ab59e801233755575c92ca595ca3fabb
BLAKE2b-256 checksum
How to use checksums
0edb63655b83b7e342ba120f94cddcf438667873820fae85b9d01e2db09b8c98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page