ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
as_logout.php
Go to the documentation of this file.
1<?php
2
9if (!isset($_REQUEST['ReturnTo']) || !is_string($_REQUEST['ReturnTo'])) {
10 throw new SimpleSAML_Error_BadRequest('Missing ReturnTo parameter.');
11}
12
13if (!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
An exception for terminatinating execution or to throw for unit testing.
Attribute-related utility methods.