lib/saml/bindings/http_artifact.rb in libsaml-2.1.3 vs lib/saml/bindings/http_artifact.rb in libsaml-2.1.4
- old
+ new
@@ -29,10 +29,10 @@
artifact = request.params["SAMLart"]
artifact_resolve = Saml::ArtifactResolve.new(artifact: artifact, destination: location)
response = Saml::Util.post(location, Saml::Util.sign_xml(artifact_resolve, :soap))
- if response.code == 200
+ if response.code == "200"
artifact_response = Saml::ArtifactResponse.parse(response.body, single: true)
verified_artifact_response = Saml::Util.verify_xml(artifact_response, response.body)
verified_artifact_response.response if artifact_response.success?
end