Commit bb2ecd1
Changed files (4)
lib/saml/kit/assertion.rb
@@ -76,7 +76,7 @@ module Saml
if encrypted?
private_keys = configuration.private_keys(use: :encryption)
decryptor = ::Xml::Kit::Decryption.new(private_keys: private_keys)
- decrypted = decryptor.decrypt(@xml_hash['Response']['EncryptedAssertion'])
+ decrypted = decryptor.decrypt_hash(@xml_hash['Response']['EncryptedAssertion'])
Saml::Kit.logger.debug(decrypted)
Hash.from_xml(decrypted)['Assertion']
else
lib/saml/kit/version.rb
@@ -1,5 +1,5 @@
module Saml
module Kit
- VERSION = "0.3.1"
+ VERSION = "0.3.2"
end
end
spec/saml/builders/response_spec.rb
@@ -93,7 +93,7 @@ RSpec.describe Saml::Kit::Builders::Response do
result = Hash.from_xml(subject.to_xml)
expect(result['Response']['EncryptedAssertion']).to be_present
encrypted_assertion = result['Response']['EncryptedAssertion']
- decrypted_assertion = Xml::Kit::Decryption.new(private_keys: configuration.private_keys(use: :encryption)).decrypt(encrypted_assertion)
+ decrypted_assertion = Xml::Kit::Decryption.new(private_keys: configuration.private_keys(use: :encryption)).decrypt_hash(encrypted_assertion)
decrypted_hash = Hash.from_xml(decrypted_assertion)
expect(decrypted_hash['Assertion']).to be_present
expect(decrypted_hash['Assertion']['Issuer']).to be_present
saml-kit.gemspec
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "activemodel", ">= 4.2.0"
spec.add_dependency "nokogiri", "~> 1.8"
- spec.add_dependency "xml-kit", ">= 0.1.0"
+ spec.add_dependency "xml-kit", ">= 0.1.1"
spec.add_development_dependency "bundler", "~> 1.15"
spec.add_development_dependency "ffaker", "~> 2.7"
spec.add_development_dependency "rake", "~> 10.0"