Skip to content

Commit

Permalink
Merge pull request SAML-Toolkits#68 from newrelic/add_xml_quoting_option
Browse files Browse the repository at this point in the history
Added settings option double_quote_xml_attribute_values
  • Loading branch information
stouset committed Mar 4, 2013
2 parents 33d37dc + 0df6c64 commit 63b9644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/onelogin/ruby-saml/authrequest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def create(settings, params = {})
params = {} if params.nil?

request_doc = create_authentication_xml_doc(settings)
request_doc.context[:attribute_quote] = :quote if settings.double_quote_xml_attribute_values

request = ""
request_doc.write(request)
Expand Down
3 changes: 2 additions & 1 deletion lib/onelogin/ruby-saml/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def initialize(overrides = {})
attr_accessor :sessionindex
attr_accessor :assertion_consumer_logout_service_url
attr_accessor :compress_request
attr_accessor :double_quote_xml_attribute_values

private

DEFAULTS = {:compress_request => true}
DEFAULTS = {:compress_request => true, :double_quote_xml_attribute_values => false}
end
end
end

0 comments on commit 63b9644

Please sign in to comment.