summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-04-03 21:09:41 +0000
committertailor <cygnus@janrain.com>2007-04-03 21:09:41 +0000
commit74b60c994d94dc260fc40572b38a4be8afdb3fa6 (patch)
tree48948d47bc36dcffeaa482e65a71cb0b63304512 /Auth
parentc5f89ca82be5d47a6583c722e9aedb9d1b7e8db4 (diff)
downloadphp-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.php6
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;
}