7if (!array_key_exists(
'stateid', $_REQUEST)) {
8 throw new Exception(
'Lost OAuth Client State');
13if (array_key_exists(
'oauth_verifier', $_REQUEST)) {
14 $state[
'authlinkedin:oauth_verifier'] = $_REQUEST[
'oauth_verifier'];
16 throw new Exception(
'OAuth verifier not returned.');;
25 throw new Exception(
'Could not find authentication source with id ' .
$sourceId);
if(!array_key_exists(sspmod_authfacebook_Auth_Source_Facebook::AUTHID, $state)) $sourceId
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
static getById($authId, $type=null)
Retrieve authentication source.
static completeAuth(&$state)
Complete authentication.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
const STAGE_INIT
The string used to identify our states.
const AUTHID
The key of the AuthId field in the state.