Persona-IDP
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
Issues
- Use our github issue tracker, at
Contribute
$ git clone https://github.com/dpaw2/persona-idp $ python setup.py develop
- We prefer patches submitted via pull requests, at
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)
| 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.