Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 708e992

Browse files
author
ppretorius
committed
Allow expecting a parameter to be nil during return_to verification.
1 parent 7d8692e commit 708e992

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/openid/consumer/idres.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def verify_return_to_args(msg_return_to)
160160
query = @message.to_post_args
161161
return_to_parsed_query.each_pair do |rt_key, rt_val|
162162
msg_val = query[rt_key]
163-
if msg_val.nil?
163+
if msg_val.nil? && !rt_val.nil?
164164
raise ProtocolError, "Message missing return_to argument '#{rt_key}'"
165165
elsif msg_val != rt_val
166166
raise ProtocolError, ("Parameter '#{rt_key}' value "\

0 commit comments

Comments
 (0)