diff --git a/modules/openid/hooks/hook_frontpage.php b/modules/openid/hooks/hook_frontpage.php deleted file mode 100644 index 73303a9f8dc85eac126ec834a85b39609b5af469..0000000000000000000000000000000000000000 --- a/modules/openid/hooks/hook_frontpage.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php -/** - * Hook to add the modinfo module to the frontpage. - * - * @param array &$links The links on the frontpage, split into sections. - */ -function openid_hook_frontpage(&$links) { - assert('is_array($links)'); - assert('array_key_exists("links", $links)'); - - $links['auth'][] = array( - 'href' => SimpleSAML_Module::getModuleURL('openid/openidtest.php'), - 'text' => '{openid:dictopenid:openidtestpage}', - ); - -} -?> \ No newline at end of file diff --git a/modules/openid/www/openidtest.php b/modules/openid/www/openidtest.php deleted file mode 100644 index c02d02b6210d0fb00f5138d618f57302e0cb3ce2..0000000000000000000000000000000000000000 --- a/modules/openid/www/openidtest.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -/** - * The _include script registers a autoloader for the simpleSAMLphp libraries. It also - * initializes the simpleSAMLphp config class with the correct path. - */ -require_once('_include.php'); - - -/* Load simpleSAMLphp, configuration and metadata */ -$config = SimpleSAML_Configuration::getInstance(); -$session = SimpleSAML_Session::getInstance(); - -if (! $session->isValid('openid') ) { - /* Authenticate with an AuthSource. */ - $hints = array('openid' => NULL); - SimpleSAML_Auth_Default::initLogin('openid', SimpleSAML_Utilities::selfURL(), NULL, $hints); -} - -$attributes = $session->getAttributes(); - -$t = new SimpleSAML_XHTML_Template($config, 'status.php', 'attributes'); -$t->data['header'] = '{openid:dictopenid:openidtestpage}'; -$t->data['remaining'] = $session->remainingTime(); -$t->data['sessionsize'] = $session->getSize(); -$t->data['attributes'] = $attributes; -$t->data['logouturl'] = NULL; -$t->show(); - - -?> \ No newline at end of file