Skip to content

Commit

Permalink
Ruby 3 KwArgs: SAML SSOE (#11954)
Browse files Browse the repository at this point in the history
Ruby 2.7 deprecated automatic casting of a hash passed as the last argument of a method to keyword arguments. You must now use actual keyword arguments (`foo(bar: 'baz')` instead of `foo({bar: 'baz'})`) or cast the hash to keyword args using the double splat (`foo(**{bar: 'baz'})`).

In preparation for upgrading to Ruby 3.0, we're implementing the new syntax for SAML error classes.
  • Loading branch information
ericboehs authored Mar 6, 2023
1 parent 295d967 commit 4062a3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/saml/user_attributes/ssoe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def validate!
multiple_id_validations
if should_raise_missing_uuid_error
data = SAML::UserAttributeError::ERRORS[:uuid_missing].merge({ identifier: mhv_icn })
raise SAML::UserAttributeError, data
raise SAML::UserAttributeError.new(**data)
end
end

Expand Down

0 comments on commit 4062a3a

Please sign in to comment.