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