You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MAX_BYTE_SIZE constant did not allow for customization, which
is necessary for cases where legitimate SAML responses are larger
than 250,000 bytes. This replaces the constant with a setting, which
has a default value of 250,000 bytes, but can be customized like
any other setting.
assert_raises(OneLogin::RubySaml::ValidationError,"Encoded SAML Message exceeds " + OneLogin::RubySaml::SamlMessage::MAX_BYTE_SIZE.to_s + " bytes, so was rejected")do
67
+
assert_raises(OneLogin::RubySaml::ValidationError,"Encoded SAML Message exceeds #{OneLogin::RubySaml::Settings::DEFAULTS[:message_max_bytesize]} bytes, so was rejected")do
68
68
saml_message=OneLogin::RubySaml::SamlMessage.new
69
69
saml_message.send(:decode_raw_saml,bomb)
70
70
end
71
71
end
72
+
73
+
describe'with a custom setting for message_max_bytesize'do
0 commit comments