CommunityID/modules/default/controllers/IdentityController.php

35 lines
969 B
PHP
Raw Normal View History

2019-07-17 20:08:50 +00:00
<?php
/*
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
* @license http://creativecommons.org/licenses/BSD/ BSD License
* @author Keyboard Monkey Ltd
* @since CommunityID 0.9
* @package CommunityID
* @packager Keyboard Monkeys
*/
2019-07-17 20:16:19 +00:00
class IdentityController extends CommunityID_Controller_Action
2019-07-17 20:08:50 +00:00
{
protected $_numCols = 1;
public function indexAction()
{
throw new Monkeys_BadUrlException($this->getRequest()->getRequestUri());
}
public function idAction()
{
2019-07-17 20:16:19 +00:00
$this->view->headLink()->headLink(array(
'rel' => 'openid.server',
'href' => $this->_helper->ProviderUrl($this->_config)
));
$this->view->headLink()->headLink(array(
'rel' => 'openid2.provider',
'href' => $this->_helper->ProviderUrl($this->_config)
));
$this->view->idUrl = urldecode(Zend_OpenId::selfURL());
2019-07-17 20:08:50 +00:00
}
}