ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilOpenIdConnectSettingsGUI. More...
Static Public Member Functions | |
static | getInstance () |
Get singleton instance. More... | |
Data Fields | |
const | FILE_STORAGE = 'openidconnect/login_form_image' |
const | STORAGE_ID = 'oidc' |
const | LOGIN_ELEMENT_TYPE_TXT = 0 |
const | LOGIN_ELEMENT_TYPE_IMG = 1 |
const | LOGIN_ENFORCE = 0 |
const | LOGIN_STANDARD = 1 |
const | LOGOUT_SCOPE_GLOBAL = 0 |
const | LOGOUT_SCOPE_LOCAL = 1 |
Protected Member Functions | |
load () | |
Load from settings. More... | |
Private Member Functions | |
__construct () | |
ilOpenIdConnectSettings constructor. More... | |
Private Attributes | |
$storage = null | |
$filesystem = null | |
$active = false | |
$provider = '' | |
$client_id = '' | |
$secret = '' | |
$login_element_type = self::LOGIN_ELEMENT_TYPE_TXT | |
$login_element_img_name | |
$login_element_text | |
$login_prompt_type = self::LOGIN_ENFORCE | |
$logout_scope | |
$custom_session = false | |
$session_duration = 60 | |
$allow_sync | |
$role | |
$uid = '' | |
$profile_map = [] | |
$profile_update_map = [] | |
$role_mappings = [] | |
Static Private Attributes | |
static | $instance = null |
Class ilOpenIdConnectSettingsGUI.
Definition at line 11 of file class.ilOpenIdConnectSettings.php.
|
private |
ilOpenIdConnectSettings constructor.
Definition at line 133 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::allowSync | ( | bool | $a_stat | ) |
bool | $a_stat |
Definition at line 336 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::deleteImageFile | ( | ) |
Delete image file.
Definition at line 379 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage().
ilOpenIdConnectSettings::getActive | ( | ) |
Definition at line 165 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by save().
ilOpenIdConnectSettings::getClientId | ( | ) |
Definition at line 197 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by save().
ilOpenIdConnectSettings::getImageFilePath | ( | ) |
Definition at line 399 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage(), and ilUtil\getWebspaceDir().
|
static |
Get singleton instance.
Definition at line 146 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\__construct(), ilAuthFrontendCredentialsOpenIdConnect\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_isExternalAccountEnabled(), and ilStartUpGUI\showOpenIdConnectLoginForm().
ilOpenIdConnectSettings::getLoginElemenText | ( | ) |
Definition at line 256 of file class.ilOpenIdConnectSettings.php.
References $login_element_text.
Referenced by save().
ilOpenIdConnectSettings::getLoginElementImage | ( | ) |
Definition at line 245 of file class.ilOpenIdConnectSettings.php.
References $login_element_img_name.
Referenced by deleteImageFile(), getImageFilePath(), hasImageFile(), and save().
ilOpenIdConnectSettings::getLoginElementType | ( | ) |
Definition at line 229 of file class.ilOpenIdConnectSettings.php.
References $login_element_type.
Referenced by save().
ilOpenIdConnectSettings::getLoginPromptType | ( | ) |
Definition at line 272 of file class.ilOpenIdConnectSettings.php.
References $login_prompt_type.
Referenced by save().
ilOpenIdConnectSettings::getLogoutScope | ( | ) |
Definition at line 288 of file class.ilOpenIdConnectSettings.php.
References $logout_scope.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFields | ( | ) |
Definition at line 549 of file class.ilOpenIdConnectSettings.php.
Referenced by load(), and save().
ilOpenIdConnectSettings::getProfileMappingFieldUpdate | ( | string | $field | ) |
string | $value |
Definition at line 531 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFieldValue | ( | string | $field | ) |
string | $field |
Definition at line 513 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProvider | ( | ) |
Definition at line 181 of file class.ilOpenIdConnectSettings.php.
References $provider.
Referenced by save().
ilOpenIdConnectSettings::getRole | ( | ) |
Definition at line 352 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappings | ( | ) |
Get role mappings.
Definition at line 421 of file class.ilOpenIdConnectSettings.php.
References $role_mappings.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappingUpdateForId | ( | $a_role_id | ) |
$a_role_id |
Definition at line 445 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getRoleMappingValueForId | ( | $a_role_id | ) |
$a_role_id |
Definition at line 430 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getSecret | ( | ) |
Get secret.
Definition at line 213 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by save().
ilOpenIdConnectSettings::getSessionDuration | ( | ) |
Definition at line 320 of file class.ilOpenIdConnectSettings.php.
References $session_duration.
Referenced by save().
ilOpenIdConnectSettings::getUidField | ( | ) |
Definition at line 368 of file class.ilOpenIdConnectSettings.php.
References $uid.
Referenced by save().
ilOpenIdConnectSettings::hasImageFile | ( | ) |
Definition at line 389 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage().
ilOpenIdConnectSettings::isCustomSession | ( | ) |
Definition at line 304 of file class.ilOpenIdConnectSettings.php.
References $custom_session.
Referenced by save().
ilOpenIdConnectSettings::isSyncAllowed | ( | ) |
Definition at line 328 of file class.ilOpenIdConnectSettings.php.
References $allow_sync.
Referenced by save().
|
protected |
Load from settings.
Definition at line 486 of file class.ilOpenIdConnectSettings.php.
References allowSync(), getProfileMappingFields(), setActive(), setClientId(), setLoginElementImage(), setLoginElementText(), setLoginElementType(), setLoginPromptType(), setLogoutScope(), setProvider(), setRole(), setRoleMappings(), setSecret(), setSessionDuration(), setUidField(), and useCustomSession().
Referenced by __construct().
ilOpenIdConnectSettings::save | ( | ) |
Save in settings.
Definition at line 459 of file class.ilOpenIdConnectSettings.php.
References getActive(), getClientId(), getLoginElemenText(), getLoginElementImage(), getLoginElementType(), getLoginPromptType(), getLogoutScope(), getProfileMappingFields(), getProfileMappingFieldUpdate(), getProfileMappingFieldValue(), getProvider(), getRole(), getRoleMappings(), getSecret(), getSessionDuration(), getUidField(), isCustomSession(), and isSyncAllowed().
ilOpenIdConnectSettings::setActive | ( | bool | $active | ) |
bool | $active |
Definition at line 157 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by load().
ilOpenIdConnectSettings::setClientId | ( | string | $client_id | ) |
string | $client_id |
Definition at line 189 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementImage | ( | string | $a_img_name | ) |
string | $a_img_name |
Definition at line 237 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementText | ( | string | $text | ) |
Definition at line 250 of file class.ilOpenIdConnectSettings.php.
References $text.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementType | ( | int | $type | ) |
Set login element type.
Definition at line 221 of file class.ilOpenIdConnectSettings.php.
References $type.
Referenced by load().
ilOpenIdConnectSettings::setLoginPromptType | ( | int | $a_type | ) |
int | $a_type |
Definition at line 264 of file class.ilOpenIdConnectSettings.php.
References $a_type.
Referenced by load().
ilOpenIdConnectSettings::setLogoutScope | ( | int | $a_scope | ) |
int | $a_scope |
Definition at line 280 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setProfileMappingFieldUpdate | ( | string | $field, |
bool | $value | ||
) |
string | $field | |
bool | $value |
Definition at line 540 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProfileMappingFieldValue | ( | string | $field, |
string | $value | ||
) |
string | $field | |
string | $value |
Definition at line 522 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProvider | ( | string | $url | ) |
string | $url |
Definition at line 173 of file class.ilOpenIdConnectSettings.php.
References $url.
Referenced by load().
ilOpenIdConnectSettings::setRole | ( | int | $role | ) |
int | $role |
Definition at line 344 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by load().
ilOpenIdConnectSettings::setRoleMappings | ( | array | $a_role_mappings | ) |
array | $a_role_mappings |
Definition at line 413 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setSecret | ( | string | $secret | ) |
string | $secret |
Definition at line 205 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by load().
ilOpenIdConnectSettings::setSessionDuration | ( | int | $a_duration | ) |
int | $a_duration |
Definition at line 312 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setUidField | ( | string | $field | ) |
string | $field |
Definition at line 360 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::useCustomSession | ( | bool | $a_stat | ) |
bool | $a_stat |
Definition at line 296 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
|
private |
Definition at line 46 of file class.ilOpenIdConnectSettings.php.
Referenced by getActive(), and setActive().
|
private |
Definition at line 102 of file class.ilOpenIdConnectSettings.php.
Referenced by isSyncAllowed().
|
private |
Definition at line 56 of file class.ilOpenIdConnectSettings.php.
Referenced by getClientId(), and setClientId().
|
private |
Definition at line 92 of file class.ilOpenIdConnectSettings.php.
Referenced by isCustomSession().
|
private |
Definition at line 40 of file class.ilOpenIdConnectSettings.php.
|
staticprivate |
Definition at line 29 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 71 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementImage().
|
private |
Definition at line 76 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElemenText().
|
private |
Definition at line 66 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementType().
|
private |
Definition at line 81 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginPromptType().
|
private |
Definition at line 87 of file class.ilOpenIdConnectSettings.php.
Referenced by getLogoutScope().
|
private |
Definition at line 117 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 122 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 51 of file class.ilOpenIdConnectSettings.php.
Referenced by getProvider().
|
private |
Definition at line 107 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 127 of file class.ilOpenIdConnectSettings.php.
Referenced by getRoleMappings().
|
private |
Definition at line 61 of file class.ilOpenIdConnectSettings.php.
Referenced by getSecret(), and setSecret().
|
private |
Definition at line 97 of file class.ilOpenIdConnectSettings.php.
Referenced by getSessionDuration().
|
private |
Definition at line 35 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 112 of file class.ilOpenIdConnectSettings.php.
Referenced by getUidField().
const ilOpenIdConnectSettings::FILE_STORAGE = 'openidconnect/login_form_image' |
Definition at line 13 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\saveImageFromHttpRequest().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_IMG = 1 |
Definition at line 17 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_TXT = 0 |
Definition at line 16 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ENFORCE = 0 |
Definition at line 19 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGIN_STANDARD = 1 |
Definition at line 20 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_GLOBAL = 0 |
Definition at line 22 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_LOCAL = 1 |
Definition at line 23 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\handleLogout(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::STORAGE_ID = 'oidc' |
Definition at line 14 of file class.ilOpenIdConnectSettings.php.