ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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 |
ilUserDefinedFields | $udf |
Static Private Attributes | |
static self | $instance = null |
Definition at line 23 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 94 of file class.ilOpenIdConnectSettings.php.
References $DIC, ilUserDefinedFields\_getInstance(), ILIAS\Repository\filesystem(), ILIAS\Repository\lng(), and load().
ilOpenIdConnectSettings::allowSync | ( | bool | $a_stat | ) |
Definition at line 229 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::clearProfileMaps | ( | ) |
Definition at line 501 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::deleteImageFile | ( | ) |
Definition at line 281 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\filesystem(), and getLoginElementImage().
ilOpenIdConnectSettings::getActive | ( | ) |
Definition at line 119 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by save().
ilOpenIdConnectSettings::getAdditionalScopes | ( | ) |
Definition at line 257 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by save().
ilOpenIdConnectSettings::getAllScopes | ( | ) |
Definition at line 273 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes, and $scopes.
ilOpenIdConnectSettings::getClientId | ( | ) |
Definition at line 139 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by save().
ilOpenIdConnectSettings::getCustomDiscoveryUrl | ( | ) |
Definition at line 537 of file class.ilOpenIdConnectSettings.php.
References $custom_discovery_url.
Referenced by save().
ilOpenIdConnectSettings::getImageFilePath | ( | ) |
Definition at line 295 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage(), and ilFileUtils\getWebspaceDir().
|
static |
Definition at line 105 of file class.ilOpenIdConnectSettings.php.
References null.
Referenced by ilAuthFrontendCredentialsOpenIdConnect\__construct(), ilAuthProviderOpenIdConnect\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_isExternalAccountEnabled(), ilObjAuthSettingsGUI\authSettingsObject(), and ilStartUpGUI\showOpenIdConnectLoginForm().
ilOpenIdConnectSettings::getLoginElemenText | ( | ) |
Definition at line 179 of file class.ilOpenIdConnectSettings.php.
References $login_element_text.
Referenced by save().
ilOpenIdConnectSettings::getLoginElementImage | ( | ) |
Definition at line 169 of file class.ilOpenIdConnectSettings.php.
References $login_element_img_name.
Referenced by deleteImageFile(), getImageFilePath(), hasImageFile(), and save().
ilOpenIdConnectSettings::getLoginElementType | ( | ) |
Definition at line 159 of file class.ilOpenIdConnectSettings.php.
References $login_element_type.
Referenced by save().
ilOpenIdConnectSettings::getLoginPromptType | ( | ) |
Definition at line 189 of file class.ilOpenIdConnectSettings.php.
References $login_prompt_type.
Referenced by save().
ilOpenIdConnectSettings::getLogoutScope | ( | ) |
Definition at line 199 of file class.ilOpenIdConnectSettings.php.
References $logout_scope.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFields | ( | ) |
Definition at line 545 of file class.ilOpenIdConnectSettings.php.
References $id, and ILIAS\Repository\lng().
Referenced by load(), and save().
ilOpenIdConnectSettings::getProfileMappingFieldUpdate | ( | string | $field | ) |
Definition at line 512 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFieldValue | ( | string | $field | ) |
Definition at line 496 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProvider | ( | ) |
Definition at line 129 of file class.ilOpenIdConnectSettings.php.
References $provider.
Referenced by save().
ilOpenIdConnectSettings::getRole | ( | ) |
Definition at line 239 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappings | ( | ) |
Definition at line 317 of file class.ilOpenIdConnectSettings.php.
References $role_mappings.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappingUpdateForId | ( | int | $a_role_id | ) |
Definition at line 331 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getRoleMappingValueForId | ( | int | $a_role_id | ) |
Definition at line 322 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getSecret | ( | ) |
Definition at line 149 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by save().
ilOpenIdConnectSettings::getSessionDuration | ( | ) |
Definition at line 219 of file class.ilOpenIdConnectSettings.php.
References $session_duration.
Referenced by save().
ilOpenIdConnectSettings::getSupportedScopesFromUrl | ( | string | $discoveryURL | ) |
Definition at line 382 of file class.ilOpenIdConnectSettings.php.
References $response, and setAdditionalScopes().
ilOpenIdConnectSettings::getUidField | ( | ) |
Definition at line 249 of file class.ilOpenIdConnectSettings.php.
References $uid.
Referenced by save().
ilOpenIdConnectSettings::getValidateScopes | ( | ) |
Definition at line 527 of file class.ilOpenIdConnectSettings.php.
References $validate_scopes.
Referenced by load(), and save().
ilOpenIdConnectSettings::hasImageFile | ( | ) |
Definition at line 288 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\filesystem(), and getLoginElementImage().
ilOpenIdConnectSettings::isCustomSession | ( | ) |
Definition at line 209 of file class.ilOpenIdConnectSettings.php.
References $custom_session.
Referenced by save().
ilOpenIdConnectSettings::isSyncAllowed | ( | ) |
Definition at line 224 of file class.ilOpenIdConnectSettings.php.
References $allow_sync.
Referenced by save().
|
protected |
Definition at line 452 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 | ( | ) |
Definition at line 415 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 | ) |
Definition at line 114 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by load().
ilOpenIdConnectSettings::setAdditionalScopes | ( | array | $additional_scopes | ) |
list<string> | $additional_scopes |
Definition at line 265 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by getSupportedScopesFromUrl(), and load().
ilOpenIdConnectSettings::setClientId | ( | string | $client_id | ) |
Definition at line 134 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by load().
ilOpenIdConnectSettings::setCustomDiscoveryUrl | ( | ?string | $discoveryUrl | ) |
Definition at line 532 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementImage | ( | string | $a_img_name | ) |
Definition at line 164 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementText | ( | string | $text | ) |
Definition at line 174 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementType | ( | int | $type | ) |
Definition at line 154 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginPromptType | ( | int | $a_type | ) |
Definition at line 184 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLogoutScope | ( | int | $a_scope | ) |
Definition at line 194 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setProfileMappingFieldUpdate | ( | string | $field, |
bool | $value | ||
) |
Definition at line 517 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProfileMappingFieldValue | ( | string | $field, |
string | $value | ||
) |
Definition at line 507 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProvider | ( | string | $url | ) |
Definition at line 124 of file class.ilOpenIdConnectSettings.php.
References $url.
Referenced by load().
ilOpenIdConnectSettings::setRole | ( | int | $role | ) |
Definition at line 234 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 309 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setSecret | ( | string | $secret | ) |
Definition at line 144 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by load().
ilOpenIdConnectSettings::setSessionDuration | ( | int | $a_duration | ) |
Definition at line 214 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setUidField | ( | string | $field | ) |
Definition at line 244 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setValidateScopes | ( | int | $validation_mode | ) |
Definition at line 522 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::useCustomSession | ( | bool | $a_stat | ) |
Definition at line 204 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::validateScopes | ( | string | $discoveryURL, |
array | $custom_scopes | ||
) |
list<string> | $custom_scopes |
Definition at line 344 of file class.ilOpenIdConnectSettings.php.
References $response.
|
private |
Definition at line 67 of file class.ilOpenIdConnectSettings.php.
Referenced by getActive(), and setActive().
|
private |
Definition at line 88 of file class.ilOpenIdConnectSettings.php.
Referenced by getAdditionalScopes(), getAllScopes(), and setAdditionalScopes().
|
private |
Definition at line 78 of file class.ilOpenIdConnectSettings.php.
Referenced by isSyncAllowed().
|
private |
Definition at line 69 of file class.ilOpenIdConnectSettings.php.
Referenced by getClientId(), and setClientId().
|
private |
Definition at line 90 of file class.ilOpenIdConnectSettings.php.
Referenced by getCustomDiscoveryUrl().
|
private |
Definition at line 76 of file class.ilOpenIdConnectSettings.php.
Referenced by isCustomSession().
|
private |
Definition at line 66 of file class.ilOpenIdConnectSettings.php.
|
staticprivate |
Definition at line 63 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 91 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 72 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementImage().
|
private |
Definition at line 73 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElemenText().
|
private |
Definition at line 71 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementType().
|
private |
Definition at line 74 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginPromptType().
|
private |
Definition at line 75 of file class.ilOpenIdConnectSettings.php.
Referenced by getLogoutScope().
|
private |
Definition at line 82 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 84 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 68 of file class.ilOpenIdConnectSettings.php.
Referenced by getProvider().
|
private |
Definition at line 79 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 86 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 77 of file class.ilOpenIdConnectSettings.php.
Referenced by getSessionDuration().
|
private |
Definition at line 65 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 92 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 80 of file class.ilOpenIdConnectSettings.php.
Referenced by getUidField().
|
private |
Definition at line 89 of file class.ilOpenIdConnectSettings.php.
Referenced by getValidateScopes().
const ilOpenIdConnectSettings::DEFAULT_SCOPE = 'openid' |
Definition at line 28 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\buildScopeSelection().
const ilOpenIdConnectSettings::FILE_STORAGE = 'openidconnect/login_form_image' |
Definition at line 27 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\saveImageFromHttpRequest().
|
private |
Definition at line 44 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_IMG = 1 |
Definition at line 30 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_TXT = 0 |
Definition at line 29 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ENFORCE = 0 |
Definition at line 31 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGIN_STANDARD = 1 |
Definition at line 32 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_GLOBAL = 0 |
Definition at line 33 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_LOCAL = 1 |
Definition at line 34 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\handleLogout(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
|
private |
Definition at line 25 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::URL_VALIDATION_CUSTOM = 1 |
const ilOpenIdConnectSettings::URL_VALIDATION_NONE = 2 |
Definition at line 38 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 41 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::VALIDATION_ISSUE_INVALID_SCOPE = 0 |
Definition at line 40 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\validateDiscoveryUrl().