summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-09-26 18:04:10 +0000
committertailor <cygnus@janrain.com>2007-09-26 18:04:10 +0000
commit62c7fc41349c8c196e9d4a1dcc1286cd15764805 (patch)
tree525d8135c60490e9a33bad7d0b2b9266d1882b35 /Auth
parent88110ac0be1bb283e248a5d92d38d6931d1aa74a (diff)
downloadphp-openid-62c7fc41349c8c196e9d4a1dcc1286cd15764805.zip
php-openid-62c7fc41349c8c196e9d4a1dcc1286cd15764805.tar.gz
php-openid-62c7fc41349c8c196e9d4a1dcc1286cd15764805.tar.bz2
[project @ Auth_OpenID_discoverWithYadis: use Auth_OpenID_ServiceEndpoint::fromXRDS]
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Discover.php14
1 files changed, 4 insertions, 10 deletions
diff --git a/Auth/OpenID/Discover.php b/Auth/OpenID/Discover.php
index fd59211..3284c25 100644
--- a/Auth/OpenID/Discover.php
+++ b/Auth/OpenID/Discover.php
@@ -385,14 +385,11 @@ function Auth_OpenID_discoverWithYadis($uri, &$fetcher)
return array($uri, array());
}
- $xrds =& Auth_Yadis_XRDS::parseXRDS($response->response_text);
+ $openid_services = Auth_OpenID_ServiceEndpoint::fromXRDS(
+ $yadis_url,
+ $response->response_text);
- if ($xrds) {
- $yadis_services =
- $xrds->services(array('filter_MatchesAnyOpenIDType'));
- }
-
- if (!$yadis_services) {
+ if (!$openid_services) {
if ($response->isXRDS()) {
return Auth_OpenID_discoverWithoutYadis($uri,
$fetcher);
@@ -403,9 +400,6 @@ function Auth_OpenID_discoverWithYadis($uri, &$fetcher)
$openid_services = Auth_OpenID_ServiceEndpoint::fromHTML(
$yadis_url,
$response->response_text);
- } else {
- $openid_services = Auth_OpenID_makeOpenIDEndpoints($yadis_url,
- $yadis_services);
}
$openid_services = Auth_OpenID_getOPOrUserServices($openid_services);