Skip to content

Commit b6c0717

Browse files
committed
Providing partial attributes to security settings doesn't nillify missing attributes
1 parent 3a64455 commit b6c0717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/onelogin/ruby-saml/settings.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ module RubySaml
1010
#
1111
class Settings
1212
def initialize(overrides = {})
13+
security_attributes = overrides.delete(:security) || {}
1314
config = DEFAULTS.merge(overrides)
15+
config[:security] = DEFAULTS[:security].merge(security_attributes)
1416
config.each do |k,v|
1517
acc = "#{k.to_s}=".to_sym
1618
if respond_to? acc

0 commit comments

Comments
 (0)