20 public static function initLogin($authId, $return, $errorURL = NULL,
50 assert(
'is_string($returnURL)');
51 assert(
'is_string($authority)');
58 $state[
'SimpleSAML_Auth_Default.ReturnURL'] = $returnURL;
59 $state[
'LogoutCompletedHandler'] = array(get_class(),
'logoutCompleted');
75 assert(
'is_string($returnURL)');
76 assert(
'is_string($authority)');
88 assert(
'is_array($state)');
89 assert(
'array_key_exists("SimpleSAML_Auth_Default.ReturnURL", $state)');
122 throw new Exception(
'Invalid authentication source: ' .
$id);
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static initLogoutReturn($returnURL, $authority)
static initLogout($returnURL, $authority)
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
static getAuthSource($id)
Return an authentication source by ID.
static logoutCallback($state)
static extractPersistentAuthState(array &$state)
static logoutCompleted($state)
static initLogin($authId, $return, $errorURL=NULL, array $params=array())
static loginCompleted($state)
static loginCompleted($state)
Called when a login operation has finished.
static getById($authId, $type=null)
Retrieve authentication source.
static logoutCallback($state)
Called when the authentication source receives an external logout request.
static getPersistentAuthData(array $state)
Get the persistent authentication state from the state array.
static getSessionFromRequest()
Retrieves the current session.
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
Handle an unsolicited login operations.
if(!array_key_exists('StateId', $_REQUEST)) $id