ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
linkback.php
Go to the documentation of this file.
1 <?php
2 
7 if (!isset($_GET['stateID'])) {
8  throw new SimpleSAML_Error_BadRequest('Missing stateID parameter.');
9 }
11 
12 if (!isset($_GET['ticket'])) {
13  throw new SimpleSAML_Error_BadRequest('Missing ticket parameter.');
14 }
15 $state['cas:ticket'] = (string)$_GET['ticket'];
16 
17 // Find authentication source
18 assert('array_key_exists(sspmod_cas_Auth_Source_CAS::AUTHID, $state)');
20 
22 if ($source === NULL) {
23  throw new Exception('Could not find authentication source with id ' . $sourceId);
24 }
25 
26 $source->finalStep($state);
27 
28 
Add rich text string
$_GET["client_id"]
const AUTHID
The key of the AuthId field in the state.
Definition: CAS.php:21
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
if(!array_key_exists(sspmod_authfacebook_Auth_Source_Facebook::AUTHID, $state)) $sourceId
Definition: linkback.php:20
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
Definition: State.php:259
const STAGE_INIT
The string used to identify our states.
Definition: CAS.php:16
$source
Definition: linkback.php:22
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324