Skip to content

Commit

Permalink
add namespace to check_authentication signature verification calls to…
Browse files Browse the repository at this point in the history
… fix stateless mode against strict OPs
  • Loading branch information
robn committed Nov 8, 2010
1 parent 783b869 commit bb252f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{$NEXT}}

* Add namespace to check_authentication signature verification calls to
fix stateless mode against strict OPs (Robert Norris)

* Documentation tweaks (Robert Norris)

1.030099_002 Nov 07 2010
Expand Down
4 changes: 4 additions & 0 deletions lib/Net/OpenID/Consumer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ sub verified_identity {
"openid.sig" => $sig64,
);

if ($self->_message_version >= 2) {
$post{'openid.ns'} = OpenID::util::VERSION_2_NAMESPACE();
}

# and copy in all signed parameters that we don't already have into %post
foreach my $param (split(/,/, $signed)) {
next unless $param =~ /^[\w\.]+$/;
Expand Down

0 comments on commit bb252f2

Please sign in to comment.