ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SimpleSAML_Auth_Default Class Reference
+ Collaboration diagram for SimpleSAML_Auth_Default:

Static Public Member Functions

static initLogin ($authId, $return, $errorURL=NULL, array $params=array())
 
static extractPersistentAuthState (array &$state)
 
static loginCompleted ($state)
 
static initLogoutReturn ($returnURL, $authority)
 
static initLogout ($returnURL, $authority)
 
static logoutCompleted ($state)
 
static logoutCallback ($state)
 
static handleUnsolicitedAuth ($authId, array $state, $redirectTo)
 

Static Private Member Functions

static getAuthSource ($id)
 Return an authentication source by ID. More...
 

Detailed Description

Definition at line 14 of file Default.php.

Member Function Documentation

◆ extractPersistentAuthState()

static SimpleSAML_Auth_Default::extractPersistentAuthState ( array &  $state)
static
Deprecated:
This method will be removed in SSP 2.0. Please use SimpleSAML_Auth_State::getPersistentAuthData() instead.

Definition at line 32 of file Default.php.

32 {
33
35 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
static getPersistentAuthData(array $state)
Get the persistent authentication state from the state array.
Definition: State.php:103

References $state, and SimpleSAML_Auth_State\getPersistentAuthData().

+ Here is the call graph for this function:

◆ getAuthSource()

static SimpleSAML_Auth_Default::getAuthSource (   $id)
staticprivate

Return an authentication source by ID.

Parameters
string$idThe id of the authentication source.
Returns
SimpleSAML_Auth_Source The authentication source.
Exceptions
ExceptionIf the $id does not correspond with an authentication source.

Definition at line 119 of file Default.php.

119 {
121 if ($as === null) {
122 throw new Exception('Invalid authentication source: ' . $id);
123 }
124 return $as;
125 }
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324
$as
if(!array_key_exists('StateId', $_REQUEST)) $id

References $as, $id, and SimpleSAML_Auth_Source\getById().

Referenced by initLogin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleUnsolicitedAuth()

static SimpleSAML_Auth_Default::handleUnsolicitedAuth (   $authId,
array  $state,
  $redirectTo 
)
static
Deprecated:
This method will be removed in SSP 2.0. Please use sspmod_saml_Auth_Source_SP::handleUnsolicitedAuth() instead.

Definition at line 107 of file Default.php.

107 {
109 }
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
Handle an unsolicited login operations.
Definition: SP.php:749

References $state, and sspmod_saml_Auth_Source_SP\handleUnsolicitedAuth().

+ Here is the call graph for this function:

◆ initLogin()

static SimpleSAML_Auth_Default::initLogin (   $authId,
  $return,
  $errorURL = NULL,
array  $params = array() 
)
static
Deprecated:
This method will be removed in SSP 2.0. Use SimpleSAML_Auth_Source::initLogin() instead.

Definition at line 20 of file Default.php.

21 {
22
23 $as = self::getAuthSource($authId);
24 $as->initLogin($return, $errorURL, $params);
25 }
static getAuthSource($id)
Return an authentication source by ID.
Definition: Default.php:119
$params
Definition: disable.php:11

References $as, $params, and getAuthSource().

+ Here is the call graph for this function:

◆ initLogout()

static SimpleSAML_Auth_Default::initLogout (   $returnURL,
  $authority 
)
static
Deprecated:
This method will be removed in SSP 2.0.

Definition at line 74 of file Default.php.

74 {
75 assert('is_string($returnURL)');
76 assert('is_string($authority)');
77
79
81 }
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:962
static initLogoutReturn($returnURL, $authority)
Definition: Default.php:49
$authority

References $authority, initLogoutReturn(), and SimpleSAML\Utils\HTTP\redirectTrustedURL().

+ Here is the call graph for this function:

◆ initLogoutReturn()

static SimpleSAML_Auth_Default::initLogoutReturn (   $returnURL,
  $authority 
)
static
Deprecated:
This method will be removed in SSP 2.0.

Definition at line 49 of file Default.php.

49 {
50 assert('is_string($returnURL)');
51 assert('is_string($authority)');
52
54
55 $state = $session->getAuthData($authority, 'LogoutState');
56 $session->doLogout($authority);
57
58 $state['SimpleSAML_Auth_Default.ReturnURL'] = $returnURL;
59 $state['LogoutCompletedHandler'] = array(get_class(), 'logoutCompleted');
60
62 if ($as === NULL) {
63 // The authority wasn't an authentication source...
65 }
66
67 $as->logout($state);
68 }
static logoutCompleted($state)
Definition: Default.php:87
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243
$session

References $as, $authority, $session, $state, SimpleSAML_Auth_Source\getById(), SimpleSAML_Session\getSessionFromRequest(), and logoutCompleted().

Referenced by initLogout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loginCompleted()

static SimpleSAML_Auth_Default::loginCompleted (   $state)
static
Deprecated:
This method will be removed in SSP 2.0. Please use SimpleSAML_Auth_Source::loginCompleted() instead.

Definition at line 41 of file Default.php.

41 {
43 }
static loginCompleted($state)
Called when a login operation has finished.
Definition: Source.php:211

References $state, and SimpleSAML_Auth_Source\loginCompleted().

+ Here is the call graph for this function:

◆ logoutCallback()

static SimpleSAML_Auth_Default::logoutCallback (   $state)
static
Deprecated:
This method will be removed in SSP 2.0. Please use SimpleSAML_Auth_Source::logoutCallback() instead.

Definition at line 98 of file Default.php.

98 {
100 }
static logoutCallback($state)
Called when the authentication source receives an external logout request.
Definition: Source.php:363

References $state, and SimpleSAML_Auth_Source\logoutCallback().

+ Here is the call graph for this function:

◆ logoutCompleted()

static SimpleSAML_Auth_Default::logoutCompleted (   $state)
static
Deprecated:
This method will be removed in SSP 2.0.

Definition at line 87 of file Default.php.

87 {
88 assert('is_array($state)');
89 assert('array_key_exists("SimpleSAML_Auth_Default.ReturnURL", $state)');
90
91 \SimpleSAML\Utils\HTTP::redirectTrustedURL($state['SimpleSAML_Auth_Default.ReturnURL']);
92 }

References $state, and SimpleSAML\Utils\HTTP\redirectTrustedURL().

Referenced by initLogoutReturn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: