ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Class ShibbolethWAYF. More...
Public Member Functions | |
__construct () | |
isSelection () | |
isValidSelection () | |
generateSelection () | |
redirect () | |
@description Redirects user to the local Shibboleth session initatiotor with already set GET arguments for the right IdP and return location. More... | |
setSAMLCookie () | |
@description Sets the standard SAML domain cookie that is also used to preselect the right entry on the local wayf More... | |
showNotice () | |
@description Show notice in case no IdP was selected More... | |
getIdplist () | |
@description Generate array of IdPs from ILIAS Shibboleth settings More... | |
generateCookieArray (?string $value) | |
@description Generates an array of IDPs using the cookie value More... | |
generateCookieValue (array $arr_cookie) | |
@description Generate the value that is stored in the cookie using the list of IDPs More... | |
appendCookieValue (string $value, array $arr_cookie) | |
@description Append a value to the array of IDPs More... | |
Data Fields | |
const | COOKIE_NAME_SAML_IDP = '_saml_idp' |
bool | $is_selection = false |
bool | $is_valid_selection = false |
string | $selected_idp = '-' |
array | $idp_list = [] |
Protected Attributes | |
WrapperFactory | $wrapper |
ilLanguage | $lng |
ilSetting | $settings |
Refinery | $refinery |
Class ShibbolethWAYF.
This class handles the Home Organization selection (also called Where Are You From service) process for Shibboleth users.
Definition at line 32 of file class.ilShibbolethWAYF.php.
ilShibbolethWAYF::__construct | ( | ) |
Definition at line 44 of file class.ilShibbolethWAYF.php.
References $DIC, getIdplist(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
ilShibbolethWAYF::appendCookieValue | ( | string | $value, |
array | $arr_cookie | ||
) |
@description Append a value to the array of IDPs
Definition at line 211 of file class.ilShibbolethWAYF.php.
Referenced by setSAMLCookie().
ilShibbolethWAYF::generateCookieArray | ( | ?string | $value | ) |
@description Generates an array of IDPs using the cookie value
Definition at line 190 of file class.ilShibbolethWAYF.php.
Referenced by generateSelection(), and setSAMLCookie().
ilShibbolethWAYF::generateCookieValue | ( | array | $arr_cookie | ) |
@description Generate the value that is stored in the cookie using the list of IDPs
Definition at line 202 of file class.ilShibbolethWAYF.php.
Referenced by setSAMLCookie().
ilShibbolethWAYF::generateSelection | ( | ) |
Definition at line 87 of file class.ilShibbolethWAYF.php.
References $selected_idp, generateCookieArray(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilShibbolethWAYF::getIdplist | ( | ) |
@description Generate array of IdPs from ILIAS Shibboleth settings
Definition at line 170 of file class.ilShibbolethWAYF.php.
References $idp_list, and ILIAS\Repository\settings().
Referenced by __construct().
ilShibbolethWAYF::isSelection | ( | ) |
Definition at line 77 of file class.ilShibbolethWAYF.php.
References $is_selection.
Referenced by showNotice().
ilShibbolethWAYF::isValidSelection | ( | ) |
Definition at line 82 of file class.ilShibbolethWAYF.php.
References $is_valid_selection.
Referenced by showNotice().
ilShibbolethWAYF::redirect | ( | ) |
@description Redirects user to the local Shibboleth session initatiotor with already set GET arguments for the right IdP and return location.
Definition at line 124 of file class.ilShibbolethWAYF.php.
References $selected_idp, ilUtil\redirect(), and ILIAS\Repository\refinery().
ilShibbolethWAYF::setSAMLCookie | ( | ) |
@description Sets the standard SAML domain cookie that is also used to preselect the right entry on the local wayf
Definition at line 146 of file class.ilShibbolethWAYF.php.
References appendCookieValue(), generateCookieArray(), generateCookieValue(), and ILIAS\Repository\refinery().
ilShibbolethWAYF::showNotice | ( | ) |
@description Show notice in case no IdP was selected
Definition at line 157 of file class.ilShibbolethWAYF.php.
References isSelection(), isValidSelection(), and ILIAS\Repository\lng().
array ilShibbolethWAYF::$idp_list = [] |
Definition at line 38 of file class.ilShibbolethWAYF.php.
Referenced by getIdplist().
bool ilShibbolethWAYF::$is_selection = false |
Definition at line 35 of file class.ilShibbolethWAYF.php.
Referenced by isSelection().
bool ilShibbolethWAYF::$is_valid_selection = false |
Definition at line 36 of file class.ilShibbolethWAYF.php.
Referenced by isValidSelection().
|
protected |
Definition at line 40 of file class.ilShibbolethWAYF.php.
|
protected |
Definition at line 42 of file class.ilShibbolethWAYF.php.
string ilShibbolethWAYF::$selected_idp = '-' |
Definition at line 37 of file class.ilShibbolethWAYF.php.
Referenced by generateSelection(), and redirect().
|
protected |
Definition at line 41 of file class.ilShibbolethWAYF.php.
|
protected |
Definition at line 39 of file class.ilShibbolethWAYF.php.
const ilShibbolethWAYF::COOKIE_NAME_SAML_IDP = '_saml_idp' |
Definition at line 34 of file class.ilShibbolethWAYF.php.