lib/saml/bindings/http_artifact.rb in libsaml-2.19.10 vs lib/saml/bindings/http_artifact.rb in libsaml-2.20.0

- old
+ new

@@ -28,14 +28,15 @@ artifact_resolve = Saml::ArtifactResolve.parse(raw_xml, single: true) Saml::Util.verify_xml(artifact_resolve, raw_xml) end - def resolve(request, location) + def resolve(request, location, additional_headers = {}, proxy = {}) artifact = request.params["SAMLart"] artifact_resolve = Saml::ArtifactResolve.new(artifact: artifact, destination: location) - response = Saml::Util.post(location, notify('create_post', Saml::Util.sign_xml(artifact_resolve, :soap))) + message = notify('create_post', Saml::Util.sign_xml(artifact_resolve, :soap)) + response = Saml::Util.post(location, message, additional_headers, proxy) if response.code == "200" notify('receive_response', response.body) artifact_response = Saml::ArtifactResponse.parse(response.body, single: true) verified_artifact_response = Saml::Util.verify_xml(artifact_response, response.body)