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.
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 SAML_SP_CONTACT_INFO = { "technical": { "givenName": "Admin", "emailAddress": "admin@example.com", } } # Optional! # Ditto for organization info SAML_SP_ORGANIZATION_INFO = { "en-US": { "name": "acme", "displayname": 'Acme Inc', "url": "http://example.com/", } } AUTHENTICATION_BACKENDS = ( # This is just so you don't block yourself out #'django.contrib.auth.backends.ModelBackend', # This is the beef 'sp.auth_backend.SAMLServiceProviderBackend', ) # Optional # Create new users with admin and/or staff accounts # Both default to False LASTPASS_CREATE_ADMIN = True LASTPASS_CREATE_STAFF = True
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-lastpass-sp-0.1.0.tar.gz
(19.7 kB
view hashes)
Built Distributions
Close
Hashes for django_lastpass_sp-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9812ac66e0edc2d1c4bcda5919132a9db28e053c7fc2a35605d13070cad2432 |
|
MD5 | e3a69ef23ef6d7f32d825d5f6d78d1d1 |
|
BLAKE2b-256 | d3d4106a471106596816d46e1ff4fede94e5daadf7d9f1b0e9b933087a713286 |
Close
Hashes for django_lastpass_sp-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7432904c64f55394dae611c5c30cd15cc821e1c24e47fe0b232568bfb604133e |
|
MD5 | a587777ff434d3b0d8b4fa1ddb87fe7a |
|
BLAKE2b-256 | 5999a17046dfbc200fecfe3c27675437fb141019f8a2da8711aebcc50fc7fb3a |