Commit f261b2d

mo <mo.khan@gmail.com>
2018-02-15 23:35:58
remove duplicate private keys.
1 parent 7001a45
Changed files (1)
lib
lib/saml/kit/assertion.rb
@@ -34,7 +34,7 @@ module Saml
         @xml_hash = hash_from(node)['Response'] || {}
         @configuration = configuration
         @occurred_at = Time.current
-        @private_keys = configuration.private_keys(use: :encryption) + private_keys
+        @private_keys = (configuration.private_keys(use: :encryption) + private_keys).uniq
         decrypt!
       end