Skip to content

Commit 7f887b4

Browse files
committed
Fix typo in SPNameQualifier error text. See #715
1 parent f4cd947 commit 7f887b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/onelogin/ruby-saml/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ def validate_name_id
833833

834834
unless settings.sp_entity_id.nil? || settings.sp_entity_id.empty? || name_id_spnamequalifier.nil? || name_id_spnamequalifier.empty?
835835
if name_id_spnamequalifier != settings.sp_entity_id
836-
return append_error("The SPNameQualifier value mistmatch the SP entityID value.")
836+
return append_error("SPNameQualifier value does not match the SP entityID value.")
837837
end
838838
end
839839
end

test/response_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def generate_audience_error(expected, actual)
10271027
settings.sp_entity_id = 'sp_entity_id'
10281028
response_wrong_spnamequalifier.settings = settings
10291029
assert !response_wrong_spnamequalifier.send(:validate_name_id)
1030-
assert_includes response_wrong_spnamequalifier.errors, "The SPNameQualifier value mistmatch the SP entityID value."
1030+
assert_includes response_wrong_spnamequalifier.errors, "SPNameQualifier value does not match the SP entityID value."
10311031
end
10321032

10331033
it "return true when no nameid element but not required by settings" do

0 commit comments

Comments
 (0)