About samlauth
samlauth is a Pluggable application for TurboGears2 to authenticate users against an SAML2 Identity Provider.
Installing
samlauth can be installed both from pypi or from bitbucket:
pip install tgapp-samlauth
should just work for most of the users
Plugging samlauth
In your application config/app_cfg.py import plug:
from tgext.pluggable import plug
Then at the end of the file call plug with samlauth:
pluggable.plug(base_config, 'samlauth', config_namespace='samlauth',
userdata_adapter=base_config.sa_auth.authmetadata.identify_from_saml)
You will be able to login at http://localhost:8080/samlauth/login.
UserData Adapter
When plugging tgapp-samlauth an userdata_adapter option is required. userdata adapter must be a callable that receives the identity provider data and returns the user_id which will be used to login user. Depending on your TGAuthMetadata the returned user_id must exist on your local database.
Options
The options are loaded from config file in config_namespace, if your config namespace is "samlauth" your options will be: samlauth.config_file and samlauth.enc_key_files.
Available options are:
.config_file -> the PySAML2 config file from where to load SP data
.enc_key_files -> List of .pem files used to decrypt SAML responses.
Metadata
Release files for tgapp-samlauth 0.0.2
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 |
|---|---|---|---|---|
| tgapp-samlauth-0.0.2.tar.gz | 4.6 kB | Without provenance | Details for tgapp-samlauth-0.0.2.tar.gz |
Release files / tgapp-samlauth-0.0.2.tar.gz
| Download URL | tgapp-samlauth-0.0.2.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfbad7d718d4f2883f0da96d5142d49b7998fd554d56e2ce1b52aea60ca44397
|
|
BLAKE2b-256 checksum How to use checksums |
06b3c26b1f4b81d150c6f11e24d693cf1d853fd4b114f3f2d4d6f0b5fcb71845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tgapp-samlauth 0.0.2
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.