zibasec / django-saml2-pro-auth

SAML2 authentication backend for Django wrapping OneLogin's python-saml package https://github.com/onelogin/python3-saml
MIT License
30 stars 28 forks source link

Allow SAML_USERS_LOOKUP_ATTRIBUTE[1] to be callable #45

Open Neitsch opened 3 years ago

Neitsch commented 3 years ago

Implements my request from #44 . SAML_USERS_LOOKUP_ATTRIBUTE[1] can now be a callable. That allows to construct more complex values for the user id based on multiple attributes if needed.

Unfortunately no tests cover this part of the code.