Skip to content
Snippets Groups Projects
selectsource.php 678 B
Newer Older
Olav Morken's avatar
Olav Morken committed
<?php

/**
 * This page shows a list of authentication sources. When the user selects
 * one of them if pass this information to the
 * \SimpleSAML\Module\multiauth\Auth\Source\MultiAuth class and call the
Olav Morken's avatar
Olav Morken committed
 * delegateAuthentication method on it.
 *
 * @package SimpleSAMLphp
Olav Morken's avatar
Olav Morken committed
 */

namespace SimpleSAML\Module\multiauth;
use SimpleSAML\Configuration;
use SimpleSAML\Session;
use Symfony\Component\HttpFoundation\Request;
Olav Morken's avatar
Olav Morken committed

$config = Configuration::getInstance();
$session = Session::getSessionFromRequest();
$request = Request::createFromGlobals();
$controller = new Controller\DiscoController($config, $session);
$response = $controller->discovery($request);
$response->send();