58 assert(is_string($returnURL));
66 $state[
'SimpleSAML_Auth_Default.ReturnURL'] = $returnURL;
67 $state[
'LogoutCompletedHandler'] = array(get_class(),
'logoutCompleted');
84 assert(is_string($returnURL));
99 assert(array_key_exists(
'SimpleSAML_Auth_Default.ReturnURL',
$state));
135 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 initLogin( $authId, $return, $errorURL=null, array $params=array())
static logoutCompleted($state)
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