Skip to content

Commit

Permalink
Fixes #270 -- allow SAML elements to come from any namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Oct 9, 2015
1 parent 9a92281 commit d08193c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/onelogin/ruby-saml/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -688,15 +688,15 @@ def assertion_encrypted?
# @return [REXML::Document] The decrypted EncryptedAssertion element
#
def decrypt_assertion(encrypted_assertion_node)
decrypt_element(encrypted_assertion_node, /(.*<\/(saml2*:|)Assertion>)/m)
decrypt_element(encrypted_assertion_node, /(.*<\/(\w+:)?Assertion>)/m)
end

# Decrypts an EncryptedID element
# @param encryptedid_node [REXML::Element] The EncryptedID element
# @return [REXML::Document] The decrypted EncrypedtID element
#
def decrypt_nameid(encryptedid_node)
decrypt_element(encryptedid_node, /(.*<\/(saml2*:|)NameID>)/m)
decrypt_element(encryptedid_node, /(.*<\/(\w+:)?NameID>)/m)
end

# Decrypt an element
Expand Down

0 comments on commit d08193c

Please sign in to comment.