Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt support #193

Closed
wants to merge 3 commits into from
Closed

Decrypt support #193

wants to merge 3 commits into from

Conversation

pitbulk
Copy link
Collaborator

@pitbulk pitbulk commented Feb 4, 2015

Initial decrypt support. Related to #9

@pitbulk
Copy link
Collaborator Author

pitbulk commented Feb 4, 2015

@Lordnibbler what do you think about this PR? Please review, after that I plan to merge it in my branch and then publish it.

@@ -184,8 +195,8 @@ def validate_response_state(soft = true)
end

def xpath_first_from_signed_assertion(subelt=nil)
node = REXML::XPath.first(document, "/p:Response/a:Assertion[@ID='#{document.signed_element_id}']#{subelt}", { "p" => PROTOCOL, "a" => ASSERTION })
node ||= REXML::XPath.first(document, "/p:Response[@ID='#{document.signed_element_id}']/a:Assertion#{subelt}", { "p" => PROTOCOL, "a" => ASSERTION })
node = REXML::XPath.first(assertion_document, "/samlp:Response/saml:Assertion[@ID='#{assertion_document.signed_element_id}']#{subelt}", { "samlp" => PROTOCOL, "saml" => ASSERTION, 'ds' => DSIG })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change does not incorporate the security fix from 0.8.2

https://github.com/onelogin/ruby-saml/blob/master/lib/onelogin/ruby-saml/response.rb#L186-L200

Rebase off master and resolve the conflict, and I can re-review

@Lordnibbler
Copy link
Contributor

I'd recommend we add documentation and tests for each new method added in response.rb

@pitbulk
Copy link
Collaborator Author

pitbulk commented Jun 11, 2015

Replaced by #241

@pitbulk pitbulk closed this Jun 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants