diff options
author | tailor <dag@janrain.com> | 2008-05-30 21:45:15 +0000 |
---|---|---|
committer | tailor <dag@janrain.com> | 2008-05-30 21:45:15 +0000 |
commit | 6f509993502b9b1fd6aabfc543325e8aca13b0b9 (patch) | |
tree | 30c16af9cf07aa8eaf18b7dc1027d2a4479c23a2 /Auth | |
parent | 9404b62c9afe6ec9c65d1dabafa1f0d449183c61 (diff) | |
download | php-openid-6f509993502b9b1fd6aabfc543325e8aca13b0b9.zip php-openid-6f509993502b9b1fd6aabfc543325e8aca13b0b9.tar.gz php-openid-6f509993502b9b1fd6aabfc543325e8aca13b0b9.tar.bz2 |
[project @ Don't explicitly set no-encryption session type with OpenID 1 requests]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Server.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Auth/OpenID/Server.php b/Auth/OpenID/Server.php index 9c72a0b..b0ef2bc 100644 --- a/Auth/OpenID/Server.php +++ b/Auth/OpenID/Server.php @@ -661,7 +661,8 @@ class Auth_OpenID_AssociateRequest extends Auth_OpenID_Request { $response->fields->updateArgs(Auth_OpenID_OPENID_NS, $this->session->answer($assoc->secret)); - if ($this->session->session_type != 'no-encryption') { + if (! ($this->session->session_type == 'no-encryption' + && $this->namespace == Auth_OpenID_OPENID1_NS)) { $response->fields->setArg(Auth_OpenID_OPENID_NS, 'session_type', $this->session->session_type); |