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

Added support for inclusive namespaces #1

Merged
merged 4 commits into from
Jul 3, 2011
Merged

Conversation

bluemango
Copy link

I working on getting the ruby-saml gem to play nicely with Salesforce. Salesforce SAML assertions use inclusive namespaces so I had to add support to the canonix gem for this. I have included inclusive namespace support as well as some additional tests for verify the update.

Thanks,
Greg DeVore

@brendon
Copy link
Owner

brendon commented Jun 29, 2011

Hi Greg, thanks for the info. I agree, I find this whole SAML thing a huge drama for something so simple! The mere fact that ruby support is so underdeveloped speaks volumes as to its adoption in the trendier real world!

I just had a look back at the code and that mention of @inclusive_namespaces in canonicalize_element is only invoked if @prefix_list is not false. I've traced @prefix_list through the whole script and it is initialised as nil, and never gets changed or used, so I guess it's safe to remove both references to @inclusive_namespaces and @prefix_list. Would you be happy to do that? Definitely have a doublecheck also just in case I've missed something big :)

@brendon
Copy link
Owner

brendon commented Jun 29, 2011

You're right regarding the relevance fork, but it would still pay to double check it before you reinvent the wheel just in case :) I'll give the guy a message and see where he's at with prepping the code to be pushed up to master :)

@bluemango
Copy link
Author

Brendon -

I went through and removed the old code and pushed. Let me know if you need anything else.

Greg

On Jun 29, 2011, at 7:52 PM, brendon wrote:

Hi Greg, thanks for the info. I agree, I find this whole SAML thing a huge drama for something so simple! The mere fact that ruby support is so underdeveloped speaks volumes as to its adoption in the trendier real world!

I just had a look back at the code and that mention of @inclusive_namespaces in canonicalize_element is only invoked if @prefix_list is not false. I've traced @prefix_list through the whole script and it is initialised as nil, and never gets changed or used, so I guess it's safe to remove both references to @inclusive_namespaces and @prefix_list. Would you be happy to do that? Definitely have a doublecheck also just in case I've missed something big :)

Reply to this email directly or view it on GitHub:
#1 (comment)

@brendon
Copy link
Owner

brendon commented Jul 3, 2011

Hi Greg, thanks for that. I just meant for you to remove lines 111, 112 and 134. I'm pretty sure that no one currently uses the canonicalize_element function, but just incase someone decides to drop their usage of xmlcanonicalizer in favour of this gem, I'd prefer to keep the functionality just in case. I'll just accept this commit and revert those changes for you :D

Thanks heaps for your help! :D

Brendon

brendon added a commit that referenced this pull request Jul 3, 2011
Added support for inclusive namespaces
@brendon brendon merged commit 92880e9 into brendon:master Jul 3, 2011
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