lib/spid/ruby-saml/utils.rb in spid-es-0.0.7 vs lib/spid/ruby-saml/utils.rb in spid-es-0.0.8
- old
+ new
@@ -75,10 +75,10 @@
# @option params [String] query_string The full GET Query String to be compared
# @return [Boolean] True if the Signature is valid, False otherwise
#
def self.verify_signature(params)
cert, sig_alg, signature, query_string = [:cert, :sig_alg, :signature, :query_string].map { |k| params[k]}
- signature_algorithm = XMLSecurityNew::BaseDocument.new.algorithm(sig_alg)
+ signature_algorithm = Spid::XMLSecurityNew::BaseDocument.new.algorithm(sig_alg)
return cert.public_key.verify(signature_algorithm.new, Base64.decode64(signature), query_string)
end
# Build the status error message
# @param status_code [String] StatusCode value