7 if (!array_key_exists(
'stateid', $_REQUEST)) {
8 throw new Exception(
'State Lost - not returned by MySpace Auth');
12 if (array_key_exists(
'oauth_problem', $_REQUEST)) {
14 if (strcmp($_REQUEST[
'oauth_problem'],
'user_refused') == 0) {
24 if (array_key_exists(
'oauth_verifier', $_REQUEST)) {
25 $state[
'authmyspace:oauth_verifier'] = $_REQUEST[
'oauth_verifier'];
27 throw new Exception(
'OAuth verifier not returned.');;
31 assert(
'array_key_exists(sspmod_authmyspace_Auth_Source_MySpace::AUTHID, $state)');
static throwException($state, SimpleSAML_Error_Exception $exception)
Throw exception to the state exception handler.
const STAGE_INIT
The string used to identify our states.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
if(!array_key_exists(sspmod_authfacebook_Auth_Source_Facebook::AUTHID, $state)) $sourceId
const AUTHID
The key of the AuthId field in the state.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
static completeAuth(&$state)
Complete authentication.
static getById($authId, $type=null)
Retrieve authentication source.