Remove some clutter from OMB plugin
This commit is contained in:
parent
a4739b0107
commit
9449235765
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user