20 public static function initLogin($authId, $return, $errorURL = NULL,
23 $as = self::getAuthSource($authId);
50 assert(
'is_string($returnURL)');
51 assert(
'is_string($authority)');
58 $state[
'SimpleSAML_Auth_Default.ReturnURL'] = $returnURL;
59 $state[
'LogoutCompletedHandler'] =
array(get_class(),
'logoutCompleted');
64 self::logoutCompleted(
$state);
75 assert(
'is_string($returnURL)');
76 assert(
'is_string($authority)');
78 self::initLogoutReturn($returnURL,
$authority);
88 assert(
'is_array($state)');
89 assert(
'array_key_exists("SimpleSAML_Auth_Default.ReturnURL", $state)');
122 throw new Exception(
'Invalid authentication source: ' .
$id);
static initLogin($authId, $return, $errorURL=NULL, array $params=array())
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)
Create styles array
The data for the language used.
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 initLogout($returnURL, $authority)