Remove some clutter from OMB plugin

This commit is contained in:
Mikael Nordfeldth 2015-06-04 01:14:26 +02:00
parent a4739b0107
commit 9449235765
2 changed files with 0 additions and 33 deletions

View File

@ -174,37 +174,6 @@ class OpenIDPlugin extends Plugin
$xrdsOutputter->elementEnd('XRD'); $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. * If we're in OpenID-only mode, hide all the main menu except OpenID login.
* *

View File

@ -45,8 +45,6 @@ require_once __DIR__.'/../openid.php';
* @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3 * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/ * @link http://status.net/
*
* @todo factor out similarities with XrdsAction
*/ */
class PublicxrdsAction extends Action class PublicxrdsAction extends Action
{ {