Skip to content
Snippets Groups Projects
Commit 39d4734e authored by Olav Morken's avatar Olav Morken
Browse files

Add support for wsfed discovery service.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@698 44740490-163a-0410-bde0-09ae8108e29a
parent d923c755
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,9 @@ class SimpleSAML_XHTML_IdPDisco {
'shib13' => array(
'metadata' => 'shib13-idp-remote',
),
'wsfed' => array(
'metadata' => 'wsfed-idp-remote',
),
);
......
<?php
require_once('../../_include.php');
$session = SimpleSAML_Session::getInstance();
try {
$discoHandler = new SimpleSAML_XHTML_IdPDisco('wsfed');
} catch (Exception $exception) {
/* An error here should be caused by invalid query parameters. */
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'DISCOPARAMS', $exception);
}
try {
$discoHandler->handleRequest();
} catch(Exception $exception) {
/* An error here should be caused by metadata. */
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'METADATA', $exception);
}
?>
\ No newline at end of file
......@@ -37,9 +37,6 @@ try {
if ($idpentityid == null) {
throw new Exception('IdP discovery for WS-Fed is currently unsupported.');
/* TODO: Add idpdisco.php */
SimpleSAML_Logger::info('WS-Fed - SP.initSSO: No chosen or default IdP, go to WSFeddisco');
SimpleSAML_Utilities::redirect('/' . $config->getBaseURL() . 'wsfed/sp/idpdisco.php', array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment