feat(api): changed SAML Helper

This commit is contained in:
Taha Yassine Kraiem 2021-12-02 21:42:28 +01:00
parent 50a3c448f5
commit 20104e8cd9

View file

@ -105,4 +105,5 @@ def is_saml2_available():
def get_saml2_provider():
return environ.get("idp_name", "saml2") if is_saml2_available() else None
return environ.get("idp_name", "saml2") if is_saml2_available() and len(
environ.get("idp_name", "saml2")) > 0 else None