ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Static Public Member Functions | |
static | getInstance () |
Data Fields | |
const | FILE_STORAGE = 'openidconnect/login_form_image' |
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 () | |
Private Member Functions | |
__construct () | |
Private Attributes | |
const | STORAGE_ID = 'oidc' |
const | IGNORED_USER_FIELDS |
readonly ilSetting | $storage |
readonly Filesystem | $filesystem |
bool | $active = false |
string | $provider = '' |
string | $client_id = '' |
string | $secret = '' |
int | $login_element_type = self::LOGIN_ELEMENT_TYPE_TXT |
string | $login_element_img_name = null |
string | $login_element_text = null |
int | $login_prompt_type = self::LOGIN_ENFORCE |
int | $logout_scope = null |
bool | $custom_session = false |
int | $session_duration = 60 |
bool | $allow_sync = null |
int | $role = null |
string | $uid = '' |
array | $profile_map = [] |
array | $profile_update_map = [] |
array | $role_mappings = [] |
array | $additional_scopes = [] |
int | $validate_scopes = self::URL_VALIDATION_PROVIDER |
string | $custom_discovery_url = null |
ilLanguage | $lng |
Profile | $profile |
Static Private Attributes | |
static self | $instance = null |
Definition at line 24 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 95 of file class.ilOpenIdConnectSettings.php.
References $DIC, ILIAS\Repository\filesystem(), ILIAS\Repository\lng(), load(), and ILIAS\Repository\profile().
ilOpenIdConnectSettings::allowSync | ( | bool | $a_stat | ) |
Definition at line 230 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::clearProfileMaps | ( | ) |
Definition at line 502 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::deleteImageFile | ( | ) |
Definition at line 282 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\filesystem(), and getLoginElementImage().
ilOpenIdConnectSettings::getActive | ( | ) |
Definition at line 120 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by save().
ilOpenIdConnectSettings::getAdditionalScopes | ( | ) |
Definition at line 258 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by save().
ilOpenIdConnectSettings::getAllScopes | ( | ) |
Definition at line 274 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes, and $scopes.
ilOpenIdConnectSettings::getClientId | ( | ) |
Definition at line 140 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by save().
ilOpenIdConnectSettings::getCustomDiscoveryUrl | ( | ) |
Definition at line 538 of file class.ilOpenIdConnectSettings.php.
References $custom_discovery_url.
Referenced by save().
ilOpenIdConnectSettings::getImageFilePath | ( | ) |
Definition at line 296 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage(), and ilFileUtils\getWebspaceDir().
|
static |
Definition at line 106 of file class.ilOpenIdConnectSettings.php.
References $instance.
Referenced by ilAuthFrontendCredentialsOpenIdConnect\__construct(), ilAuthProviderOpenIdConnect\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_isExternalAccountEnabled(), and ilStartUpGUI\showOpenIdConnectLoginForm().
ilOpenIdConnectSettings::getLoginElemenText | ( | ) |
Definition at line 180 of file class.ilOpenIdConnectSettings.php.
References $login_element_text.
Referenced by save().
ilOpenIdConnectSettings::getLoginElementImage | ( | ) |
Definition at line 170 of file class.ilOpenIdConnectSettings.php.
References $login_element_img_name.
Referenced by deleteImageFile(), getImageFilePath(), hasImageFile(), and save().
ilOpenIdConnectSettings::getLoginElementType | ( | ) |
Definition at line 160 of file class.ilOpenIdConnectSettings.php.
References $login_element_type.
Referenced by save().
ilOpenIdConnectSettings::getLoginPromptType | ( | ) |
Definition at line 190 of file class.ilOpenIdConnectSettings.php.
References $login_prompt_type.
Referenced by save().
ilOpenIdConnectSettings::getLogoutScope | ( | ) |
Definition at line 200 of file class.ilOpenIdConnectSettings.php.
References $logout_scope.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFields | ( | ) |
Definition at line 546 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\lng(), and ILIAS\Repository\profile().
Referenced by load(), and save().
ilOpenIdConnectSettings::getProfileMappingFieldUpdate | ( | string | $field | ) |
Definition at line 513 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFieldValue | ( | string | $field | ) |
Definition at line 497 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProvider | ( | ) |
Definition at line 130 of file class.ilOpenIdConnectSettings.php.
References $provider.
Referenced by save().
ilOpenIdConnectSettings::getRole | ( | ) |
Definition at line 240 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappings | ( | ) |
Definition at line 318 of file class.ilOpenIdConnectSettings.php.
References $role_mappings.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappingUpdateForId | ( | int | $a_role_id | ) |
Definition at line 332 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getRoleMappingValueForId | ( | int | $a_role_id | ) |
Definition at line 323 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getSecret | ( | ) |
Definition at line 150 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by save().
ilOpenIdConnectSettings::getSessionDuration | ( | ) |
Definition at line 220 of file class.ilOpenIdConnectSettings.php.
References $session_duration.
Referenced by save().
ilOpenIdConnectSettings::getSupportedScopesFromUrl | ( | string | $discoveryURL | ) |
Definition at line 383 of file class.ilOpenIdConnectSettings.php.
References $response, and setAdditionalScopes().
ilOpenIdConnectSettings::getUidField | ( | ) |
Definition at line 250 of file class.ilOpenIdConnectSettings.php.
References $uid.
Referenced by save().
ilOpenIdConnectSettings::getValidateScopes | ( | ) |
Definition at line 528 of file class.ilOpenIdConnectSettings.php.
References $validate_scopes.
Referenced by load(), and save().
ilOpenIdConnectSettings::hasImageFile | ( | ) |
Definition at line 289 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\filesystem(), and getLoginElementImage().
ilOpenIdConnectSettings::isCustomSession | ( | ) |
Definition at line 210 of file class.ilOpenIdConnectSettings.php.
References $custom_session.
Referenced by save().
ilOpenIdConnectSettings::isSyncAllowed | ( | ) |
Definition at line 225 of file class.ilOpenIdConnectSettings.php.
References $allow_sync.
Referenced by save().
|
protected |
Definition at line 453 of file class.ilOpenIdConnectSettings.php.
References allowSync(), getProfileMappingFields(), getValidateScopes(), ILIAS\Repository\profile(), setActive(), setAdditionalScopes(), setClientId(), setCustomDiscoveryUrl(), setLoginElementImage(), setLoginElementText(), setLoginElementType(), setLoginPromptType(), setLogoutScope(), setProvider(), setRole(), setRoleMappings(), setSecret(), setSessionDuration(), setUidField(), setValidateScopes(), and useCustomSession().
Referenced by __construct().
ilOpenIdConnectSettings::save | ( | ) |
Definition at line 416 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(), isSyncAllowed(), and ILIAS\Repository\profile().
ilOpenIdConnectSettings::setActive | ( | bool | $active | ) |
Definition at line 115 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by load().
ilOpenIdConnectSettings::setAdditionalScopes | ( | array | $additional_scopes | ) |
list<string> | $additional_scopes |
Definition at line 266 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by getSupportedScopesFromUrl(), and load().
ilOpenIdConnectSettings::setClientId | ( | string | $client_id | ) |
Definition at line 135 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by load().
ilOpenIdConnectSettings::setCustomDiscoveryUrl | ( | ?string | $discoveryUrl | ) |
Definition at line 533 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementImage | ( | string | $a_img_name | ) |
Definition at line 165 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementText | ( | string | $text | ) |
Definition at line 175 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementType | ( | int | $type | ) |
Definition at line 155 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginPromptType | ( | int | $a_type | ) |
Definition at line 185 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLogoutScope | ( | int | $a_scope | ) |
Definition at line 195 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setProfileMappingFieldUpdate | ( | string | $field, |
bool | $value | ||
) |
Definition at line 518 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProfileMappingFieldValue | ( | string | $field, |
string | $value | ||
) |
Definition at line 508 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProvider | ( | string | $url | ) |
Definition at line 125 of file class.ilOpenIdConnectSettings.php.
References $url.
Referenced by load().
ilOpenIdConnectSettings::setRole | ( | int | $role | ) |
Definition at line 235 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by load().
ilOpenIdConnectSettings::setRoleMappings | ( | array | $a_role_mappings | ) |
array<int,array{value | string, update: bool}> $a_role_mappings |
Definition at line 310 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setSecret | ( | string | $secret | ) |
Definition at line 145 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by load().
ilOpenIdConnectSettings::setSessionDuration | ( | int | $a_duration | ) |
Definition at line 215 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setUidField | ( | string | $field | ) |
Definition at line 245 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setValidateScopes | ( | int | $validation_mode | ) |
Definition at line 523 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::useCustomSession | ( | bool | $a_stat | ) |
Definition at line 205 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::validateScopes | ( | string | $discoveryURL, |
array | $custom_scopes | ||
) |
list<string> | $custom_scopes |
Definition at line 345 of file class.ilOpenIdConnectSettings.php.
References $response, VALIDATION_ISSUE_DISCOVERY_ERROR, and VALIDATION_ISSUE_INVALID_SCOPE.
|
private |
Definition at line 68 of file class.ilOpenIdConnectSettings.php.
Referenced by getActive(), and setActive().
|
private |
Definition at line 89 of file class.ilOpenIdConnectSettings.php.
Referenced by getAdditionalScopes(), getAllScopes(), and setAdditionalScopes().
|
private |
Definition at line 79 of file class.ilOpenIdConnectSettings.php.
Referenced by isSyncAllowed().
|
private |
Definition at line 70 of file class.ilOpenIdConnectSettings.php.
Referenced by getClientId(), and setClientId().
|
private |
Definition at line 91 of file class.ilOpenIdConnectSettings.php.
Referenced by getCustomDiscoveryUrl().
|
private |
Definition at line 77 of file class.ilOpenIdConnectSettings.php.
Referenced by isCustomSession().
|
private |
Definition at line 67 of file class.ilOpenIdConnectSettings.php.
|
staticprivate |
Definition at line 64 of file class.ilOpenIdConnectSettings.php.
Referenced by getInstance().
|
private |
Definition at line 92 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 73 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementImage().
|
private |
Definition at line 74 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElemenText().
|
private |
Definition at line 72 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementType().
|
private |
Definition at line 75 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginPromptType().
|
private |
Definition at line 76 of file class.ilOpenIdConnectSettings.php.
Referenced by getLogoutScope().
|
private |
Definition at line 93 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 83 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 85 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 69 of file class.ilOpenIdConnectSettings.php.
Referenced by getProvider().
|
private |
Definition at line 80 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 87 of file class.ilOpenIdConnectSettings.php.
Referenced by getRoleMappings().
|
private |
Definition at line 71 of file class.ilOpenIdConnectSettings.php.
Referenced by getSecret(), and setSecret().
|
private |
Definition at line 78 of file class.ilOpenIdConnectSettings.php.
Referenced by getSessionDuration().
|
private |
Definition at line 66 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 81 of file class.ilOpenIdConnectSettings.php.
Referenced by getUidField().
|
private |
Definition at line 90 of file class.ilOpenIdConnectSettings.php.
Referenced by getValidateScopes().
const ilOpenIdConnectSettings::DEFAULT_SCOPE = 'openid' |
Definition at line 29 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\buildScopeSelection().
const ilOpenIdConnectSettings::FILE_STORAGE = 'openidconnect/login_form_image' |
Definition at line 28 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\saveImageFromHttpRequest().
|
private |
Definition at line 45 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_IMG = 1 |
Definition at line 31 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_TXT = 0 |
Definition at line 30 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ENFORCE = 0 |
Definition at line 32 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGIN_STANDARD = 1 |
Definition at line 33 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_GLOBAL = 0 |
Definition at line 34 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_LOCAL = 1 |
Definition at line 35 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\handleLogout(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
|
private |
Definition at line 26 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::URL_VALIDATION_CUSTOM = 1 |
const ilOpenIdConnectSettings::URL_VALIDATION_NONE = 2 |
Definition at line 39 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\buildScopeSelection().
const ilOpenIdConnectSettings::URL_VALIDATION_PROVIDER = 0 |
const ilOpenIdConnectSettings::VALIDATION_ISSUE_DISCOVERY_ERROR = 1 |
Definition at line 42 of file class.ilOpenIdConnectSettings.php.
Referenced by validateScopes().
const ilOpenIdConnectSettings::VALIDATION_ISSUE_INVALID_SCOPE = 0 |
Definition at line 41 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\validateDiscoveryUrl(), and validateScopes().