ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
disco.php
Go to the documentation of this file.
1<?php
2
3try {
4 $discoHandler = new sspmod_discopower_PowerIdPDisco(array('saml20-idp-remote', 'shib13-idp-remote'), 'poweridpdisco');
5} catch (Exception $exception) {
6 // An error here should be caused by invalid query parameters
7 throw new SimpleSAML_Error_Error('DISCOPARAMS', $exception);
8}
9
10try {
11 $discoHandler->handleRequest();
12} catch(Exception $exception) {
13 // An error here should be caused by metadata
14 throw new SimpleSAML_Error_Error('METADATA', $exception);
15}
An exception for terminatinating execution or to throw for unit testing.
$discoHandler
Built-in IdP discovery service.
Definition: disco.php:7