]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove some clutter from OMB plugin
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 3 Jun 2015 23:14:26 +0000 (01:14 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 3 Jun 2015 23:14:26 +0000 (01:14 +0200)
plugins/OpenID/OpenIDPlugin.php
plugins/OpenID/actions/publicxrds.php

index cf820c3ab633e73bd0ec47f5da54f19597f4e7ef..3ba2f4e5abb5d34354e8c659ad08d7ecf28b85ef 100644 (file)
@@ -174,37 +174,6 @@ class OpenIDPlugin extends Plugin
         $xrdsOutputter->elementEnd('XRD');
     }
 
-    /**
-     * User XRDS output hook
-     *
-     * Puts the bits of code needed to discover OpenID endpoints.
-     *
-     * @param Action       $action         Action being executed
-     * @param XMLOutputter &$xrdsOutputter Output channel
-     *
-     * @return boolean hook return
-     */
-    function onEndUserXRDS(Action $action, &$xrdsOutputter)
-    {
-        $xrdsOutputter->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
-                                                  'xml:id' => 'openid',
-                                                  'xmlns:simple' => 'http://xrds-simple.net/core/1.0',
-                                                  'version' => '2.0'));
-        $xrdsOutputter->element('Type', null, 'xri://$xrds*simple');
-
-        //consumer
-        $xrdsOutputter->showXrdsService('http://specs.openid.net/auth/2.0/return_to',
-                                        common_local_url('finishopenidlogin'));
-
-        //provider
-        $xrdsOutputter->showXrdsService('http://specs.openid.net/auth/2.0/signon',
-                                        common_local_url('openidserver'),
-                                        null,
-                                        null,
-                                        common_profile_url($action->user->nickname));
-        $xrdsOutputter->elementEnd('XRD');
-    }
-
     /**
      * If we're in OpenID-only mode, hide all the main menu except OpenID login.
      *
index 5b099872f4abb569531fe31b33799240eb28d49f..25801e7861cb1d3798f26141e6d5128890021100 100644 (file)
@@ -45,8 +45,6 @@ require_once __DIR__.'/../openid.php';
  * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
  * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
  * @link     http://status.net/
- *
- * @todo factor out similarities with XrdsAction
  */
 class PublicxrdsAction extends Action
 {