28 $as = self::getAuthSource($authId);
58 assert(is_string($returnURL));
66 $state[
'SimpleSAML_Auth_Default.ReturnURL'] = $returnURL;
67 $state[
'LogoutCompletedHandler'] = array(get_class(),
'logoutCompleted');
72 self::logoutCompleted(
$state);
84 assert(is_string($returnURL));
87 self::initLogoutReturn($returnURL,
$authority);
99 assert(array_key_exists(
'SimpleSAML_Auth_Default.ReturnURL',
$state));
135 throw new Exception(
'Invalid authentication source: ' .
$id);
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
static logoutCompleted($state)
static loginCompleted($state)
Called when a login operation has finished.
if(!array_key_exists('StateId', $_REQUEST)) $id
static initLogoutReturn($returnURL, $authority)
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static logoutCallback($state)
Called when the authentication source receives an external logout request.
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
static extractPersistentAuthState(array &$state)
static logoutCallback($state)
static getAuthSource($id)
Return an authentication source by ID.
static loginCompleted($state)
static getPersistentAuthData(array $state)
Get the persistent authentication state from the state array.
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
Handle an unsolicited login operations.
static getById($authId, $type=null)
Retrieve authentication source.
static getSessionFromRequest()
Retrieves the current session.
static initLogin( $authId, $return, $errorURL=null, array $params=array())
static initLogout($returnURL, $authority)