diff options
| -rw-r--r-- | lib/saml/kit/assertion.rb | 2 | ||||
| -rw-r--r-- | lib/saml/kit/version.rb | 2 | ||||
| -rw-r--r-- | saml-kit.gemspec | 2 | ||||
| -rw-r--r-- | spec/saml/builders/response_spec.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/saml/kit/assertion.rb b/lib/saml/kit/assertion.rb index 40f567c..5299bc3 100644 --- a/lib/saml/kit/assertion.rb +++ b/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 diff --git a/lib/saml/kit/version.rb b/lib/saml/kit/version.rb index 9513aae..22546c5 100644 --- a/lib/saml/kit/version.rb +++ b/lib/saml/kit/version.rb @@ -1,5 +1,5 @@ module Saml module Kit - VERSION = "0.3.1" + VERSION = "0.3.2" end end diff --git a/saml-kit.gemspec b/saml-kit.gemspec index ce2da2f..0db5d05 100644 --- a/saml-kit.gemspec +++ b/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" diff --git a/spec/saml/builders/response_spec.rb b/spec/saml/builders/response_spec.rb index bd4a3a9..97152ae 100644 --- a/spec/saml/builders/response_spec.rb +++ b/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 |
