diff options
author | tailor <cygnus@janrain.com> | 2007-04-03 21:09:41 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-04-03 21:09:41 +0000 |
commit | 74b60c994d94dc260fc40572b38a4be8afdb3fa6 (patch) | |
tree | 48948d47bc36dcffeaa482e65a71cb0b63304512 /Auth | |
parent | c5f89ca82be5d47a6583c722e9aedb9d1b7e8db4 (diff) | |
download | php-openid-74b60c994d94dc260fc40572b38a4be8afdb3fa6.zip php-openid-74b60c994d94dc260fc40572b38a4be8afdb3fa6.tar.gz php-openid-74b60c994d94dc260fc40572b38a4be8afdb3fa6.tar.bz2 |
[project @ Call setAnonymous on auth_request]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Consumer.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php index 8afbb06..33f3ab0 100644 --- a/Auth/OpenID/Consumer.php +++ b/Auth/OpenID/Consumer.php @@ -375,7 +375,11 @@ class Auth_OpenID_Consumer { $auth_req = $this->consumer->begin($endpoint); $this->session->set($this->_token_key, $loader->toSession($auth_req->endpoint)); - $auth_req->anonymous = $anonymous; + if (!$auth_req->setAnonymous($anonymous)) { + return new Auth_OpenID_FailureResponse(null, + "OpenID 1 requests MUST include the identifier " . + "in the request."); + } return $auth_req; } |