Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django LastPass SAML authenticator

Project Description

This is a hacky extension to django-saml-service-provider that, instead of onelogin, uses LastPass Enterprise as an IdP.


Get it from PyPI:

pip install django-lastpass-sp

Example configuration

# Check the LastPass SAML metadata for the bits after '.../login/'
LASTPASS_CONNECTOR_ID = '1234567/abc4'

# This is the certificate given by LastPass
# or LASTPASS_CERTIFICATE if you want the cert in your conf
LASTPASS_CERTIFICATE_FILE = os.path.join(BASE_DIR, 'lastpass.crt')

# Private key, try it like this:
# openssl genrsa > samlsp.key
# or SAML_SP_KEY if you want the key in your conf
SAML_SP_KEY_FILE = os.path.join(BASE_DIR, 'samlsp.key')

# Certificate, try with self-signed:
# openssl req -new -x509 -key samlsp.key -out samlsp.crt -days 365
# or SAML_SP_CERTIFICATE if you want the key in your conf
SAML_SP_CERTIFICATE_FILE = os.path.join(BASE_DIR, 'samlsp.crt')

# Optional!
# Contact info provided in the metadata
    "technical": {
        "givenName": "Admin",
        "emailAddress": "",

# Optional!
# Ditto for organization info
    "en-US": {
        "name": "acme",
        "displayname": 'Acme Inc',
        "url": "",

    # This is just so you don't block yourself out
    # This is the beef

# Optional
# Create new users with admin and/or staff accounts
# Both default to False
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_lastpass_sp-0.1.6-py2-none-any.whl (13.0 kB) Copy SHA256 Checksum SHA256 py2 Wheel Oct 24, 2015
django_lastpass_sp-0.1.6-py3-none-any.whl (13.0 kB) Copy SHA256 Checksum SHA256 py3 Wheel Oct 24, 2015
django-lastpass-sp-0.1.6.tar.gz (21.0 kB) Copy SHA256 Checksum SHA256 Source Oct 24, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting