a Django SAML2 IDentity Provider based on pySAML2
uniauth-saml2-idp is an SAML2 IDentity Provider built on top of Pysaml2 and Django. It was born as a fork of djangosaml2idp project of which very little has by now remained.
Consult the Official Documentation at readthedocs for usage specifications and advanced topics.
ldap_peoples
) through django-ldap-academia-ou-manager;uniAuth permit to add new metadata and register new Service Providers directly from the Admin backend interface, via Web. See Official Documentation at readthedocs for usage specifications and advanced topics.
Every Metadata store, during creation or update, will be validated to avoid faulty configurations in production environment.
Create a new SP. If SAML_DISALLOW_UNDEFINED_SP
is True this configuration is mandatory, otherwise only the sp metadata is needed, the SP configuration will be created automatically using a default configuration.
pip install -r requirements-dev.txt
pytest tests/ -x --pdb
code coverage
coverage erase
coverage run -m pytest tests/
coverage report -m
A test LDAP server is available in tests/ldapd.py
.
You can run it manually and test a query with ldapsearch
.
Unit test will run ldapd.py
automatically.
python3 tests/ldapd.py
ldapsearch -H ldap://localhost:3899 -b "dc=testunical,dc=it" -x uid=mario
# auth bind
ldapsearch -H ldap://localhost:3899 -b "dc=testunical,dc=it" uid=mario -D "uid=mario,ou=people,dc=testunical,dc=it" -w cimpa12
Feel free to contribute creating separate PR from dedicated branches for each feature. Please open an Issue if you want to talk before develop, to reduce the risk to be not merged for some reason.