ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 37 of file Default.php.

References SimpleSAML_Auth_State\getPersistentAuthData().

38  {
39 
41  }
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 131 of file Default.php.

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

132  {
134  if ($as === null) {
135  throw new Exception('Invalid authentication source: ' . $id);
136  }
137  return $as;
138  }
if(!array_key_exists('StateId', $_REQUEST)) $id
$as
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:340
+ 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 118 of file Default.php.

References sspmod_saml_Auth_Source_SP\handleUnsolicitedAuth().

119  {
121  }
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:758
+ 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 21 of file Default.php.

References $as, and PHPMailer\PHPMailer\$params.

26  {
27 
28  $as = self::getAuthSource($authId);
29  $as->initLogin($return, $errorURL, $params);
30  }
$as

◆ initLogout()

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

Definition at line 82 of file Default.php.

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

83  {
84  assert(is_string($returnURL));
85  assert(is_string($authority));
86 
87  self::initLogoutReturn($returnURL, $authority);
88 
90  }
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:959
$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 56 of file Default.php.

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

57  {
58  assert(is_string($returnURL));
59  assert(is_string($authority));
60 
62 
63  $state = $session->getAuthData($authority, 'LogoutState');
64  $session->doLogout($authority);
65 
66  $state['SimpleSAML_Auth_Default.ReturnURL'] = $returnURL;
67  $state['LogoutCompletedHandler'] = array(get_class(), 'logoutCompleted');
68 
70  if ($as === null) {
71  // The authority wasn't an authentication source...
72  self::logoutCompleted($state);
73  }
74 
75  $as->logout($state);
76  }
$session
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
$as
static getById($authId, $type=null)
Retrieve authentication source.
Definition: Source.php:340
$authority
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
+ 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 47 of file Default.php.

References $state, and SimpleSAML_Auth_Source\loginCompleted().

48  {
50  }
static loginCompleted($state)
Called when a login operation has finished.
Definition: Source.php:212
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 108 of file Default.php.

References $state, and SimpleSAML_Auth_Source\logoutCallback().

109  {
111  }
static logoutCallback($state)
Called when the authentication source receives an external logout request.
Definition: Source.php:379
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 96 of file Default.php.

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

97  {
98  assert(is_array($state));
99  assert(array_key_exists('SimpleSAML_Auth_Default.ReturnURL', $state));
100 
101  \SimpleSAML\Utils\HTTP::redirectTrustedURL($state['SimpleSAML_Auth_Default.ReturnURL']);
102  }
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Definition: HTTP.php:959
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: