Skip to main content

Python library for the Verified Email Protocol

Project description

This is a python client library for the Verified Email Protocol, a.k.a Mozilla’s BrowserID project. See here for details:

And see here for how to integrate it into your website:

To just get something stable and working, it’s currently recommended that you use the remote verifier service to check your assertions. Do so like this:

>>> verifier = vep.RemoteVerifier()
>>> data = verifier.verify(BROWSERIDASSERTION, "")
>>> print data["email"]

For improved performance, or if you just want to live on the bleeding edge, you can perform verification locally like so:

>>> verifier = vep.LocalVerifier()
>>> data = verifier.verify(BROWSERIDASSERTION, "")
>>> print data["email"]

As the Verified Email Protocol gets locked down more firmly, using the local verifier will become the preferred method of checking VEP identity assertions.

0.2.1 - 2011-12-16

  • Use M2Crypto for faster DSA operations.
  • DummyVerifier: fix hex formatting for compatability with jwcrypto.
  • DummyVerifier: don’t emit FutureWarning on initialisation.

0.2.0 - 2011-12-07

  • do more validation of the assertion before checking the certificates, to avoid expensive crypto ops for things we know to be invalid.
  • implement DummyVerifier class to aid in testing, both of this package and of packages that are using PyVEP.
  • add exception hierarchy in vep.errors, so that calling code can easily tell why verification failed.

0.1.1 - 2011-12-01

  • add “” to default list of trusted secondaries.
  • implement additional signature algorithms.
  • if “hostname/.well-known/host-meta” gives a 404, fall back to “hostname/pk” to find the public key.

0.1.0 - 2011-11-23

  • initial release.

Project details

Download files

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

Files for PyVEP, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size PyVEP-0.2.1.tar.gz (22.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page