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.

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

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 131 of file Default.php.

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

119 {
121 }
static handleUnsolicitedAuth($authId, array $state, $redirectTo)
Handle an unsolicited login operations.
Definition: SP.php:758

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 21 of file Default.php.

26 {
27
28 $as = self::getAuthSource($authId);
29 $as->initLogin($return, $errorURL, $params);
30 }
static getAuthSource($id)
Return an authentication source by ID.
Definition: Default.php:131

References $as, PHPMailer\PHPMailer\$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 82 of file Default.php.

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

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...
73 }
74
75 $as->logout($state);
76 }
static logoutCompleted($state)
Definition: Default.php:96
static getSessionFromRequest()
Retrieves the current session.
Definition: Session.php:241
$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 47 of file Default.php.

48 {
50 }
static loginCompleted($state)
Called when a login operation has finished.
Definition: Source.php:212

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 108 of file Default.php.

109 {
111 }
static logoutCallback($state)
Called when the authentication source receives an external logout request.
Definition: Source.php:379

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 96 of file Default.php.

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 }

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: