ID provider XRDS was not used in our context
authorAymeric Augustin <aymeric.augustin@m4x.org>
Wed, 29 Oct 2008 20:26:27 +0000 (21:26 +0100)
committerAymeric Augustin <aymeric.augustin@m4x.org>
Wed, 29 Oct 2008 21:13:59 +0000 (22:13 +0100)
modules/openid.php
templates/openid/idp_xrds.tpl [deleted file]

index 295dabe..bd74eee 100644 (file)
@@ -49,7 +49,6 @@ class OpenidModule extends PLModule
         return array(
             'openid'            => $this->make_hook('openid', AUTH_PUBLIC),
             'openid/trust'      => $this->make_hook('trust', AUTH_COOKIE),
-            'openid/idp_xrds'   => $this->make_hook('idp_xrds', AUTH_PUBLIC),
             'openid/user_xrds'  => $this->make_hook('user_xrds', AUTH_PUBLIC),
             'openid/melix'      => $this->make_hook('melix', AUTH_PUBLIC),
         );
@@ -169,21 +168,6 @@ class OpenidModule extends PLModule
         $this->render_openid_response($webresponse);
     }
 
-    function handler_idp_xrds(&$page)
-    {
-        // Load constants
-        $this->load('openid.inc.php');
-
-        // Set XRDS content-type and template
-        header('Content-type: application/xrds+xml');
-        $page->changeTpl('openid/idp_xrds.tpl', NO_SKIN);
-
-        // Set variables
-        $page->changeTpl('openid/idp_xrds.tpl', NO_SKIN);
-        $page->assign('type', Auth_OpenID_TYPE_2_0_IDP);
-        $page->assign('uri', get_openid_url());
-    }
-
     function handler_user_xrds(&$page, $x = null)
     {
         // Load constants
diff --git a/templates/openid/idp_xrds.tpl b/templates/openid/idp_xrds.tpl
deleted file mode 100644 (file)
index ae6c214..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xrds:XRDS
-    xmlns:xrds="xri://$xrds"
-    xmlns="xri://$xrd*($v*2.0)">
-  <XRD>
-    <Service priority="0">
-      <Type>{$type}</Type>
-      <URI>{$uri}</URI>
-    </Service>
-  </XRD>
-</xrds:XRDS>
\ No newline at end of file