ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Class ShibbolethWAYF. More...
Public Member Functions | |
__construct () | |
isSelection () | |
isValidSelection () | |
generateSelection () | |
redirect () | |
Redirects user to the local Shibboleth session initatiotor with already set GET arguments for the right IdP and return location. More... | |
setSAMLCookie () | |
Sets the standard SAML domain cookie that is also used to preselect the right entry on the local wayf More... | |
showNotice () | |
Show notice in case no IdP was selected More... | |
getIdplist () | |
Generate array of IdPs from ILIAS Shibboleth settings More... | |
generateCookieArray (?string $value) | |
Generates an array of IDPs using the cookie value More... | |
generateCookieValue (array $arr_cookie) | |
Generate the value that is stored in the cookie using the list of IDPs More... | |
appendCookieValue (string $value, array $arr_cookie) | |
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(), null, ILIAS\Repository\refinery(), and ILIAS\Repository\settings().
ilShibbolethWAYF::appendCookieValue | ( | string | $value, |
array | $arr_cookie | ||
) |
Append a value to the array of IDPs
Definition at line 211 of file class.ilShibbolethWAYF.php.
Referenced by setSAMLCookie().
ilShibbolethWAYF::generateCookieArray | ( | ?string | $value | ) |
Generates an array of IDPs using the cookie value
Definition at line 190 of file class.ilShibbolethWAYF.php.
References null.
Referenced by generateSelection(), and setSAMLCookie().
ilShibbolethWAYF::generateCookieValue | ( | array | $arr_cookie | ) |
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 generateCookieArray(), ILIAS\Repository\lng(), null, and ILIAS\Repository\refinery().
ilShibbolethWAYF::getIdplist | ( | ) |
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 | ( | ) |
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 | ( | ) |
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 | ( | ) |
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 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.