ILIAS
release_8 Revision v8.23
|
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 |
ILIAS Refinery Factory | $refinery |
Class ShibbolethWAYF.
This class handles the Home Organization selection (also called Where Are You From service) process for Shibboleth users.
Definition at line 31 of file class.ilShibbolethWAYF.php.
ilShibbolethWAYF::__construct | ( | ) |
Definition at line 43 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 | ||
) |
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 189 of file class.ilShibbolethWAYF.php.
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 201 of file class.ilShibbolethWAYF.php.
Referenced by setSAMLCookie().
ilShibbolethWAYF::generateSelection | ( | ) |
Definition at line 86 of file class.ilShibbolethWAYF.php.
References generateCookieArray(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
ilShibbolethWAYF::getIdplist | ( | ) |
Generate array of IdPs from ILIAS Shibboleth settings
Definition at line 169 of file class.ilShibbolethWAYF.php.
References $idp_list, and ILIAS\Repository\settings().
Referenced by __construct().
ilShibbolethWAYF::isSelection | ( | ) |
Definition at line 76 of file class.ilShibbolethWAYF.php.
References $is_selection.
Referenced by showNotice().
ilShibbolethWAYF::isValidSelection | ( | ) |
Definition at line 81 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 123 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 145 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 156 of file class.ilShibbolethWAYF.php.
References isSelection(), isValidSelection(), and ILIAS\Repository\lng().
array ilShibbolethWAYF::$idp_list = [] |
Definition at line 37 of file class.ilShibbolethWAYF.php.
Referenced by getIdplist().
bool ilShibbolethWAYF::$is_selection = false |
Definition at line 34 of file class.ilShibbolethWAYF.php.
Referenced by isSelection().
bool ilShibbolethWAYF::$is_valid_selection = false |
Definition at line 35 of file class.ilShibbolethWAYF.php.
Referenced by isValidSelection().
|
protected |
Definition at line 39 of file class.ilShibbolethWAYF.php.
|
protected |
Definition at line 41 of file class.ilShibbolethWAYF.php.
string ilShibbolethWAYF::$selected_idp = '-' |
Definition at line 36 of file class.ilShibbolethWAYF.php.
Referenced by redirect().
|
protected |
Definition at line 40 of file class.ilShibbolethWAYF.php.
|
protected |
Definition at line 38 of file class.ilShibbolethWAYF.php.
const ilShibbolethWAYF::COOKIE_NAME_SAML_IDP = '_saml_idp' |
Definition at line 33 of file class.ilShibbolethWAYF.php.