ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
as_logout.php
Go to the documentation of this file.
1 <?php
2 
9 if (!isset($_REQUEST['ReturnTo']) || !is_string($_REQUEST['ReturnTo'])) {
10  throw new SimpleSAML_Error_BadRequest('Missing ReturnTo parameter.');
11 }
12 
13 if (!isset($_REQUEST['AuthId']) || !is_string($_REQUEST['AuthId'])) {
14  throw new SimpleSAML_Error_BadRequest('Missing AuthId parameter.');
15 }
16 
17 $as = new \SimpleSAML\Auth\Simple($_REQUEST['AuthId']);
18 $as->logout(\SimpleSAML\Utils\HTTP::checkURLAllowed($_REQUEST['ReturnTo']));
if(!isset($_REQUEST['ReturnTo'])||!is_string($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])||!is_string($_REQUEST['AuthId'])) $as
Definition: as_logout.php:17
Attribute-related utility methods.