Skip to content

Commit d4c82a4

Browse files
Work-around for xmlsec.initialize problem
1 parent 367d845 commit d4c82a4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/onelogin/saml2/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
from onelogin.saml2.constants import OneLogin_Saml2_Constants
3535
from onelogin.saml2.errors import OneLogin_Saml2_Error
3636

37+
if not globals().get('xmlsec_setup', False):
38+
xmlsec.initialize()
39+
globals()['xmlsec_setup'] = True
3740

3841
def print_xmlsec_errors(filename, line, func, error_object, error_subject, reason, msg):
3942
"""

0 commit comments

Comments
 (0)