Skip to content

Commit

Permalink
Merge pull request #271 from alex/patch-1
Browse files Browse the repository at this point in the history
Fixes #270 -- allow SAML elements to come from any namespace
  • Loading branch information
pitbulk committed Oct 27, 2015
2 parents acf4a50 + d08193c commit b9423ac
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 b9423ac

Please sign in to comment.