ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
linkback.php
Go to the documentation of this file.
1<?php
2
7if (!isset($_GET['stateID'])) {
8 throw new SimpleSAML_Error_BadRequest('Missing stateID parameter.');
9}
11
12if (!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
18assert('array_key_exists(sspmod_cas_Auth_Source_CAS::AUTHID, $state)');
20
22if ($source === NULL) {
23 throw new Exception('Could not find authentication source with id ' . $sourceId);
24}
25
26$source->finalStep($state);
27
28
if(!array_key_exists(sspmod_authfacebook_Auth_Source_Facebook::AUTHID, $state)) $sourceId
Definition: linkback.php:20
$source
Definition: linkback.php:22
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324
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
const AUTHID
The key of the AuthId field in the state.
Definition: CAS.php:21