providers/saml: add changeable signature and digest algorithm

This commit is contained in:
Jens Langhammer
2020-02-17 16:28:18 +01:00
parent 41689fe3ce
commit a5629c5155
5 changed files with 77 additions and 12 deletions

View File

@ -88,10 +88,5 @@ def get_response_xml(parameters, saml_provider: SAMLProvider, assertion_id=""):
signature_xml = get_signature_xml()
params["RESPONSE_SIGNATURE"] = signature_xml
signed = sign_with_signxml(
saml_provider.signing_key,
raw_response,
saml_provider.signing_cert,
reference_uri=assertion_id,
)
signed = sign_with_signxml(raw_response, saml_provider, reference_uri=assertion_id,)
return signed