ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 | DEFAULT_SCOPE = 'openid' |
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 |
const | URL_VALIDATION_PROVIDER = 0 |
const | URL_VALIDATION_CUSTOM = 1 |
const | URL_VALIDATION_NONE = 2 |
const | VALIDATION_ISSUE_INVALID_SCOPE = 0 |
const | VALIDATION_ISSUE_DISCOVERY_ERROR = 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 = [] | |
$additional_scopes = [] | |
$validate_scopes = self::URL_VALIDATION_PROVIDER | |
$custom_discovery_url = null | |
Static Private Attributes | |
static | $instance = null |
Class ilOpenIdConnectSettingsGUI.
Definition at line 11 of file class.ilOpenIdConnectSettings.php.
|
private |
ilOpenIdConnectSettings constructor.
Definition at line 150 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::allowSync | ( | bool | $a_stat | ) |
bool | $a_stat |
Definition at line 353 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::deleteImageFile | ( | ) |
Delete image file.
Definition at line 423 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage().
ilOpenIdConnectSettings::getActive | ( | ) |
Definition at line 182 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by save().
ilOpenIdConnectSettings::getAdditionalScopes | ( | ) |
Definition at line 393 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by save().
ilOpenIdConnectSettings::getAllScopes | ( | ) |
Definition at line 409 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
ilOpenIdConnectSettings::getClientId | ( | ) |
Definition at line 214 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by save().
ilOpenIdConnectSettings::getCustomDiscoveryUrl | ( | ) |
Definition at line 514 of file class.ilOpenIdConnectSettings.php.
References $custom_discovery_url.
Referenced by save().
ilOpenIdConnectSettings::getImageFilePath | ( | ) |
Definition at line 443 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage(), and ilUtil\getWebspaceDir().
|
static |
Get singleton instance.
Definition at line 163 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\__construct(), ilAuthFrontendCredentialsOpenIdConnect\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_isExternalAccountEnabled(), ilObjAuthSettingsGUI\authSettingsObject(), and ilStartUpGUI\showOpenIdConnectLoginForm().
ilOpenIdConnectSettings::getLoginElemenText | ( | ) |
Definition at line 273 of file class.ilOpenIdConnectSettings.php.
References $login_element_text.
Referenced by save().
ilOpenIdConnectSettings::getLoginElementImage | ( | ) |
Definition at line 262 of file class.ilOpenIdConnectSettings.php.
References $login_element_img_name.
Referenced by deleteImageFile(), getImageFilePath(), hasImageFile(), and save().
ilOpenIdConnectSettings::getLoginElementType | ( | ) |
Definition at line 246 of file class.ilOpenIdConnectSettings.php.
References $login_element_type.
Referenced by save().
ilOpenIdConnectSettings::getLoginPromptType | ( | ) |
Definition at line 289 of file class.ilOpenIdConnectSettings.php.
References $login_prompt_type.
Referenced by save().
ilOpenIdConnectSettings::getLogoutScope | ( | ) |
Definition at line 305 of file class.ilOpenIdConnectSettings.php.
References $logout_scope.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFields | ( | ) |
Definition at line 659 of file class.ilOpenIdConnectSettings.php.
Referenced by load(), and save().
ilOpenIdConnectSettings::getProfileMappingFieldUpdate | ( | string | $field | ) |
string | $value |
Definition at line 641 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFieldValue | ( | string | $field | ) |
string | $field |
Definition at line 623 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProvider | ( | ) |
Definition at line 198 of file class.ilOpenIdConnectSettings.php.
References $provider.
Referenced by save().
ilOpenIdConnectSettings::getRole | ( | ) |
Definition at line 369 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappings | ( | ) |
Get role mappings.
Definition at line 465 of file class.ilOpenIdConnectSettings.php.
References $role_mappings.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappingUpdateForId | ( | $a_role_id | ) |
$a_role_id |
Definition at line 489 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getRoleMappingValueForId | ( | $a_role_id | ) |
$a_role_id |
Definition at line 474 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getSecret | ( | ) |
Get secret.
Definition at line 230 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by save().
ilOpenIdConnectSettings::getSessionDuration | ( | ) |
Definition at line 337 of file class.ilOpenIdConnectSettings.php.
References $session_duration.
Referenced by save().
ilOpenIdConnectSettings::getUidField | ( | ) |
Definition at line 385 of file class.ilOpenIdConnectSettings.php.
References $uid.
Referenced by save().
ilOpenIdConnectSettings::getValidateScopes | ( | ) |
Definition at line 504 of file class.ilOpenIdConnectSettings.php.
References $validate_scopes.
Referenced by load(), and save().
ilOpenIdConnectSettings::hasImageFile | ( | ) |
Definition at line 433 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage().
ilOpenIdConnectSettings::isCustomSession | ( | ) |
Definition at line 321 of file class.ilOpenIdConnectSettings.php.
References $custom_session.
Referenced by save().
ilOpenIdConnectSettings::isSyncAllowed | ( | ) |
Definition at line 345 of file class.ilOpenIdConnectSettings.php.
References $allow_sync.
Referenced by save().
|
protected |
Load from settings.
Definition at line 591 of file class.ilOpenIdConnectSettings.php.
References allowSync(), getProfileMappingFields(), getValidateScopes(), setActive(), setAdditionalScopes(), setClientId(), setCustomDiscoveryUrl(), setLoginElementImage(), setLoginElementText(), setLoginElementType(), setLoginPromptType(), setLogoutScope(), setProvider(), setRole(), setRoleMappings(), setSecret(), setSessionDuration(), setUidField(), setValidateScopes(), and useCustomSession().
Referenced by __construct().
ilOpenIdConnectSettings::save | ( | ) |
Save in settings.
Definition at line 556 of file class.ilOpenIdConnectSettings.php.
References getActive(), getAdditionalScopes(), getClientId(), getCustomDiscoveryUrl(), getLoginElemenText(), getLoginElementImage(), getLoginElementType(), getLoginPromptType(), getLogoutScope(), getProfileMappingFields(), getProfileMappingFieldUpdate(), getProfileMappingFieldValue(), getProvider(), getRole(), getRoleMappings(), getSecret(), getSessionDuration(), getUidField(), getValidateScopes(), isCustomSession(), and isSyncAllowed().
ilOpenIdConnectSettings::setActive | ( | bool | $active | ) |
bool | $active |
Definition at line 174 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by load().
ilOpenIdConnectSettings::setAdditionalScopes | ( | array | $additional_scopes | ) |
array | $additional_scopes |
Definition at line 401 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by load().
ilOpenIdConnectSettings::setClientId | ( | string | $client_id | ) |
string | $client_id |
Definition at line 206 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by load().
ilOpenIdConnectSettings::setCustomDiscoveryUrl | ( | ?string | $discoveryUrl | ) |
Definition at line 509 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementImage | ( | string | $a_img_name | ) |
string | $a_img_name |
Definition at line 254 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementText | ( | string | $text | ) |
Definition at line 267 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementType | ( | int | $type | ) |
Set login element type.
Definition at line 238 of file class.ilOpenIdConnectSettings.php.
References $type.
Referenced by load().
ilOpenIdConnectSettings::setLoginPromptType | ( | int | $a_type | ) |
int | $a_type |
Definition at line 281 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLogoutScope | ( | int | $a_scope | ) |
int | $a_scope |
Definition at line 297 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setProfileMappingFieldUpdate | ( | string | $field, |
bool | $value | ||
) |
string | $field | |
bool | $value |
Definition at line 650 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProfileMappingFieldValue | ( | string | $field, |
string | $value | ||
) |
string | $field | |
string | $value |
Definition at line 632 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProvider | ( | string | $url | ) |
string | $url |
Definition at line 190 of file class.ilOpenIdConnectSettings.php.
References $url.
Referenced by load().
ilOpenIdConnectSettings::setRole | ( | int | $role | ) |
int | $role |
Definition at line 361 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by load().
ilOpenIdConnectSettings::setRoleMappings | ( | array | $a_role_mappings | ) |
array | $a_role_mappings |
Definition at line 457 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setSecret | ( | string | $secret | ) |
string | $secret |
Definition at line 222 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by load().
ilOpenIdConnectSettings::setSessionDuration | ( | int | $a_duration | ) |
int | $a_duration |
Definition at line 329 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setUidField | ( | string | $field | ) |
string | $field |
Definition at line 377 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setValidateScopes | ( | int | $validation_mode | ) |
Definition at line 499 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::useCustomSession | ( | bool | $a_stat | ) |
bool | $a_stat |
Definition at line 313 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::validateScopes | ( | string | $discoveryURL, |
array | $custom_scopes | ||
) |
Definition at line 519 of file class.ilOpenIdConnectSettings.php.
References Vendor\Package\$e, $response, and $result.
|
private |
Definition at line 55 of file class.ilOpenIdConnectSettings.php.
Referenced by getActive(), and setActive().
|
private |
Definition at line 141 of file class.ilOpenIdConnectSettings.php.
Referenced by getAdditionalScopes(), getAllScopes(), and setAdditionalScopes().
|
private |
Definition at line 111 of file class.ilOpenIdConnectSettings.php.
Referenced by isSyncAllowed().
|
private |
Definition at line 65 of file class.ilOpenIdConnectSettings.php.
Referenced by getClientId(), and setClientId().
|
private |
Definition at line 144 of file class.ilOpenIdConnectSettings.php.
Referenced by getCustomDiscoveryUrl().
|
private |
Definition at line 101 of file class.ilOpenIdConnectSettings.php.
Referenced by isCustomSession().
|
private |
Definition at line 49 of file class.ilOpenIdConnectSettings.php.
|
staticprivate |
Definition at line 38 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 80 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementImage().
|
private |
Definition at line 85 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElemenText().
|
private |
Definition at line 75 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementType().
|
private |
Definition at line 90 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginPromptType().
|
private |
Definition at line 96 of file class.ilOpenIdConnectSettings.php.
Referenced by getLogoutScope().
|
private |
Definition at line 126 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 131 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 60 of file class.ilOpenIdConnectSettings.php.
Referenced by getProvider().
|
private |
Definition at line 116 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 136 of file class.ilOpenIdConnectSettings.php.
Referenced by getRoleMappings().
|
private |
Definition at line 70 of file class.ilOpenIdConnectSettings.php.
Referenced by getSecret(), and setSecret().
|
private |
Definition at line 106 of file class.ilOpenIdConnectSettings.php.
Referenced by getSessionDuration().
|
private |
Definition at line 44 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 121 of file class.ilOpenIdConnectSettings.php.
Referenced by getUidField().
|
private |
Definition at line 143 of file class.ilOpenIdConnectSettings.php.
Referenced by getValidateScopes().
const ilOpenIdConnectSettings::DEFAULT_SCOPE = 'openid' |
Definition at line 15 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
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 18 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_TXT = 0 |
Definition at line 17 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ENFORCE = 0 |
Definition at line 20 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGIN_STANDARD = 1 |
Definition at line 21 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_GLOBAL = 0 |
Definition at line 23 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_LOCAL = 1 |
Definition at line 24 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.
const ilOpenIdConnectSettings::URL_VALIDATION_CUSTOM = 1 |
Definition at line 27 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilOpenIdConnectSettingsGUI\saveSettings().
const ilOpenIdConnectSettings::URL_VALIDATION_NONE = 2 |
Definition at line 28 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::URL_VALIDATION_PROVIDER = 0 |
Definition at line 26 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilOpenIdConnectSettingsGUI\saveSettings().
const ilOpenIdConnectSettings::VALIDATION_ISSUE_DISCOVERY_ERROR = 1 |
Definition at line 31 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::VALIDATION_ISSUE_INVALID_SCOPE = 0 |
Definition at line 30 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\saveSettings().