Move to python3-saml

This commit is contained in:
Michael Youngstrom
2019-01-30 12:29:44 -05:00
parent 6a43ae2a5d
commit e7898d153d
14 changed files with 79 additions and 74 deletions

View File

@@ -135,6 +135,6 @@ def prepare_saml_response_from_xml(xml, relay_state='testshib'):
"""
b64encoded_xml = b64encode(xml)
return 'RelayState={relay_state}&SAMLResponse={saml_response}'.format(
relay_state=OneLogin_Saml2_Utils.case_sensitive_urlencode(relay_state),
saml_response=OneLogin_Saml2_Utils.case_sensitive_urlencode(b64encoded_xml)
relay_state=OneLogin_Saml2_Utils.escape_url(relay_state),
saml_response=OneLogin_Saml2_Utils.escape_url(b64encoded_xml)
)