7if (!array_key_exists(
'stateid', $_REQUEST)) {
8 throw new Exception(
'State Lost - not returned by MySpace Auth');
12if (array_key_exists(
'oauth_problem', $_REQUEST)) {
14 if (strcmp($_REQUEST[
'oauth_problem'],
'user_refused') == 0) {
24if (array_key_exists(
'oauth_verifier', $_REQUEST)) {
25 $state[
'authmyspace:oauth_verifier'] = $_REQUEST[
'oauth_verifier'];
27 throw new Exception(
'OAuth verifier not returned.');;
31assert(
'array_key_exists(sspmod_authmyspace_Auth_Source_MySpace::AUTHID, $state)');
36 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 throwException($state, SimpleSAML_Error_Exception $exception)
Throw exception to the state exception handler.
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.