psmiraglia / uniAuth

a Django SAML2 IDentity Provider based on pySAML2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django uniAuth

Python version License

Django Unified Authentication System is an IDentity Provider built on top of IdentityPython stack. 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.

Alt text

This Release implements a SAML2 IDP.

An OIDC Provider on top of IdentityPython will be also available in the next releases.

SAML2 Features

uniAuth, as a SAML2 IDP, is based on pysaml2 and it supports:

  • HTTP-REDIRECT and POST bindings;
  • AuthnRequest with or without ForceAuthn;
  • SLO, SAML Single Logout;
  • Encrypted assertions, customizable sign/digest algorithms and, in general, a good posture in terms of security and data integrity regarding SAML standards.

uniAuth doesn't support AllowCreate NameIDPolicy, this behaviour is completely demanded to uniAuth AttributeProcessors.

Implementation specific Features

  • Full Internazionalization support (i18n);
  • Interactive Metadata Store definitions through the Admin Backend UI;
  • Interactive ServiceProvider Federation through the Admin Backend UI;
  • Customizable Template and style based on AGID guidelines;
  • MetadataStore and SP validations on save, to prevent faulty configurations in production environment;
  • Optional and quite granular Agreement Screen;
  • Many configurable options, for every SP we can decide:
    • signature and digest algorithms;
    • attributes release policies;
    • attribute rewrite and creation, fully configurable AttributeProcessors per SP, every aspect of attribute release can be customized from schratch;
    • selectable hashing algorithm for Computed NameID;
    • agreement screen message, availability, data consent form.
  • Configurable log rotation through uwsgi;
  • Importable StoredPersistentID for each user, from migrations from another IDP;
  • An LDAP web manager with a configurable app (ldap_peoples);
  • Multifactor support, as originally available in djangosaml2idp;
  • Detailed but not huge logs.

Characteristics

uniauth will let us to configure metadata stores and federate new Service Providers directly from the Admin backend interface, via Web. See Official Documentation at readthedocs for usage specifications and advanced topics.


Alt text Alt text Every Metadata store, during creation or update, will be validated to avoid faulty configurations in production environment


Alt text Alt text To federate a new SP is just needed to have its entityID in some of the metadata handled by a metadata store. All the other options and informations regards security, agreement, data consent policy and Attribute releases will be managed through Attribute Processors.

Contribute

Feel free to contribute creating separate PR from dedicated branches for each feature. Open an Issue if you want to talk before develop to reduce the risk to be unmerged for some latest reason. All the things will be collected in a new roadmap to the next release candidate.

Still need to handle Continuous Integration with unit test.

About

a Django SAML2 IDentity Provider based on pySAML2

License:Apache License 2.0


Languages

Language:Python 76.8%Language:CSS 10.6%Language:HTML 8.8%Language:JavaScript 2.5%Language:Shell 1.2%