ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
sspmod_preprodwarning_Auth_Process_Warning Class Reference
+ Inheritance diagram for sspmod_preprodwarning_Auth_Process_Warning:
+ Collaboration diagram for sspmod_preprodwarning_Auth_Process_Warning:

Public Member Functions

 process (&$state)
 Process a authentication response. More...
 
- Public Member Functions inherited from SimpleSAML_Auth_ProcessingFilter
 __construct (&$config, $reserved)
 Constructor for a processing filter. More...
 
 process (&$request)
 Process a request. More...
 

Additional Inherited Members

- Data Fields inherited from SimpleSAML_Auth_ProcessingFilter
 $priority = 50
 Priority of this filter. More...
 

Detailed Description

Definition at line 8 of file Warning.php.

Member Function Documentation

◆ process()

sspmod_preprodwarning_Auth_Process_Warning::process ( $state)

Process a authentication response.

This function saves the state, and redirects the user to the page where the user can authorize the release of the attributes.

Parameters
array$stateThe state of the response.

Reimplemented from SimpleSAML_Auth_ProcessingFilter.

Definition at line 20 of file Warning.php.

20 {
21 assert('is_array($state)');
22
23 if (isset($state['isPassive']) && $state['isPassive'] === TRUE) {
24 // We have a passive request. Skip the warning
25 return;
26 }
27
28 // Save state and redirect.
29 $id = SimpleSAML_Auth_State::saveState($state, 'warning:request');
30 $url = SimpleSAML\Module::getModuleURL('preprodwarning/showwarning.php');
32 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
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
if(!array_key_exists('StateId', $_REQUEST)) $id
$url

References $id, $state, $url, SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: