Skip to main content

Persona-IDP

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 Provenance Actions
persona_idp-0.9.tar.gz 15.0 kB Without provenance Details for persona_idp-0.9.tar.gz

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

Security for persona-idp 0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9 This release

1 release file No provenance

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