ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
RedirectTest.php
Go to the documentation of this file.
1<?php
2
8
9
15 public function process(&$state) {
16 assert('is_array($state)');
17 assert('array_key_exists("Attributes", $state)');
18
19 // To check whether the state is saved correctly
20 $state['Attributes']['RedirectTest1'] = array('OK');
21
22 // Save state and redirect
23 $id = SimpleSAML_Auth_State::saveState($state, 'exampleauth:redirectfilter-test');
24 $url = SimpleSAML\Module::getModuleURL('exampleauth/redirecttest.php');
26 }
27
28}
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
An exception for terminatinating execution or to throw for unit testing.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Definition: Module.php:303
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:962
static saveState(&$state, $stage, $rawId=false)
Save the state.
Definition: State.php:194
A simple processing filter for testing that redirection works as it should.
Definition: RedirectTest.php:7
process(&$state)
Initialize processing of the redirect test.
if(!array_key_exists('StateId', $_REQUEST)) $id
$url