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.

References SimpleSAML_Auth_State\getPersistentAuthData().

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
+ 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.

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

119  {
121  if ($as === null) {
122  throw new Exception('Invalid authentication source: ' . $id);
123  }
124  return $as;
125  }
if(!array_key_exists('StateId', $_REQUEST)) $id
$as
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324
+ Here is the call 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.

References sspmod_saml_Auth_Source_SP\handleUnsolicitedAuth().

107  {
109  }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
Handle an unsolicited login operations.
Definition: SP.php:749
+ 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.

References $as, and $params.

21  {
22 
23  $as = self::getAuthSource($authId);
24  $as->initLogin($return, $errorURL, $params);
25  }
$params
Definition: disable.php:11
$as

◆ 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.

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

74  {
75  assert('is_string($returnURL)');
76  assert('is_string($authority)');
77 
78  self::initLogoutReturn($returnURL, $authority);
79 
81  }
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:962
$authority
+ 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.

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

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...
64  self::logoutCompleted($state);
65  }
66 
67  $as->logout($state);
68  }
$session
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
$as
Create styles array
The data for the language used.
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:324
$authority
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:243
+ Here is the call 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.

References $state, and SimpleSAML_Auth_Source\loginCompleted().

41  {
43  }
static loginCompleted($state)
Called when a login operation has finished.
Definition: Source.php:211
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
+ 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.

References $state, and SimpleSAML_Auth_Source\logoutCallback().

98  {
100  }
static logoutCallback($state)
Called when the authentication source receives an external logout request.
Definition: Source.php:363
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
+ 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.

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

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  }
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:962
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
+ Here is the call graph for this function:

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