diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-23 19:05:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-23 19:05:16 +0000 |
commit | c061a16a6bb3c75ed8881c665ab3b453604faecd (patch) | |
tree | 391e78332b86f39c3c1e64e1d5e9a16b767975ec /modules/openid/tests | |
parent | 4d590cff65c6dcc98a7523bf1eb8610a1d8757ef (diff) | |
download | brdo-c061a16a6bb3c75ed8881c665ab3b453604faecd.tar.gz brdo-c061a16a6bb3c75ed8881c665ab3b453604faecd.tar.bz2 |
- Patch #728278 by c960657: openid_complete() should normalize ['openid.claimed_id()'] before discovery. With better tests.
Diffstat (limited to 'modules/openid/tests')
-rw-r--r-- | modules/openid/tests/openid_test.module | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/openid/tests/openid_test.module b/modules/openid/tests/openid_test.module index db03641c5..4314e0b20 100644 --- a/modules/openid/tests/openid_test.module +++ b/modules/openid/tests/openid_test.module @@ -251,19 +251,6 @@ function _openid_test_endpoint_authenticate() { // Generate unique identifier for this authentication. $nonce = _openid_nonce(); - if (!isset($_REQUEST['openid_claimed_id'])) { - // openid.claimed_id is not used in OpenID 1.x. - $claimed_id = ''; - } - elseif ($_REQUEST['openid_claimed_id'] == 'http://specs.openid.net/auth/2.0/identifier_select') { - // The Relying Party did not specify a Claimed Identifier, so the OpenID - // Provider decides on one. - $claimed_id = url('openid-test/yadis/xrds/dummy-user', array('absolute' => TRUE)); - } - else { - $claimed_id = $_REQUEST['openid_claimed_id']; - } - // Generate response containing the user's identity. The openid.sreg.xxx // entries contain profile data stored by the OpenID Provider (see OpenID // Simple Registration Extension 1.0). @@ -271,7 +258,7 @@ function _openid_test_endpoint_authenticate() { 'openid.ns' => OPENID_NS_2_0, 'openid.mode' => 'id_res', 'openid.op_endpoint' => url('openid-test/endpoint', array('absolute' => TRUE)), - 'openid.claimed_id' => $claimed_id, + 'openid.claimed_id' => !empty($_REQUEST['openid_claimed_id']) ? $_REQUEST['openid_claimed_id'] : '', 'openid.identity' => $_REQUEST['openid_identity'], 'openid.return_to' => $_REQUEST['openid_return_to'], 'openid.response_nonce' => $nonce, |