7 if (!array_key_exists(
'state', $_REQUEST)) {
8 throw new Exception(
'Lost OAuth Client State');
13 if (array_key_exists(
'code', $_REQUEST)) {
15 $state[
'authwindowslive:verification_code'] = $_REQUEST[
'code'];
17 if (array_key_exists(
'exp', $_REQUEST)) {
18 $state[
'authwindowslive:exp'] = $_REQUEST[
'exp'];
26 if ($_REQUEST[
'error'] ===
'user_denied') {
32 throw new Exception(
'Authentication failed: ['.$_REQUEST[
'error'].
'] '.$_REQUEST[
'error_description']);
36 assert(
'array_key_exists(sspmod_authwindowslive_Auth_Source_LiveID::AUTHID, $state)');
static throwException($state, SimpleSAML_Error_Exception $exception)
Throw exception to the state exception handler.
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 STAGE_INIT
The string used to identify our states.
static loadState($id, $stage, $allowMissing=false)
Retrieve saved state.
static completeAuth(&$state)
Complete authentication.
const AUTHID
The key of the AuthId field in the state.
static getById($authId, $type=null)
Retrieve authentication source.