diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-10 20:13:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-10 20:13:20 +0000 |
commit | 9b735710e9229e2ef43fbe5e7cd2130e2f9998ae (patch) | |
tree | 1b4a076a51f594dc78b3c5ca4e6ec464a6b7dfe3 /modules/openid/tests/openid_test.module | |
parent | 05c39fe7a04607ed2fdb07c01f4e24de3c0f9056 (diff) | |
download | brdo-9b735710e9229e2ef43fbe5e7cd2130e2f9998ae.tar.gz brdo-9b735710e9229e2ef43fbe5e7cd2130e2f9998ae.tar.bz2 |
- Patch #222044 by c960657: better support for different OpenID versions.
Diffstat (limited to 'modules/openid/tests/openid_test.module')
-rw-r--r-- | modules/openid/tests/openid_test.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/openid/tests/openid_test.module b/modules/openid/tests/openid_test.module index c84b10284..731233009 100644 --- a/modules/openid/tests/openid_test.module +++ b/modules/openid/tests/openid_test.module @@ -206,10 +206,11 @@ function _openid_test_endpoint_authenticate() { // entries contain profile data stored by the OpenID Provider (see OpenID // Simple Registration Extension 1.0). $response = array( - 'openid.ns' => 'http://specs.openid.net/auth/2.0', + 'openid.ns' => OPENID_NS_2_0, 'openid.mode' => 'id_res', 'openid.op_endpoint' => $base_url . url('openid/provider'), - 'openid.claimed_id' => $_REQUEST['openid_claimed_id'], + // openid.claimed_id is not sent by OpenID 1 clients. + 'openid.claimed_id' => isset($_REQUEST['openid_claimed_id']) ? $_REQUEST['openid_claimed_id'] : '', 'openid.identity' => $_REQUEST['openid_identity'], 'openid.return_to' => $_REQUEST['openid_return_to'], 'openid.response_nonce' => $nonce, |