ILIAS
release_8 Revision v8.19
|
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' |
ilSetting | $storage |
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 |
int | $role |
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 |
Static Private Attributes | |
static self | $instance = null |
Definition at line 27 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 76 of file class.ilOpenIdConnectSettings.php.
References $DIC, ILIAS\Repository\filesystem(), and load().
ilOpenIdConnectSettings::allowSync | ( | bool | $a_stat | ) |
Definition at line 210 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::deleteImageFile | ( | ) |
Definition at line 267 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\filesystem(), and getLoginElementImage().
ilOpenIdConnectSettings::getActive | ( | ) |
Definition at line 99 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by save().
ilOpenIdConnectSettings::getAdditionalScopes | ( | ) |
Definition at line 238 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by save().
ilOpenIdConnectSettings::getAllScopes | ( | ) |
Definition at line 255 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes, and $scopes.
ilOpenIdConnectSettings::getClientId | ( | ) |
Definition at line 119 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by save().
ilOpenIdConnectSettings::getCustomDiscoveryUrl | ( | ) |
Definition at line 458 of file class.ilOpenIdConnectSettings.php.
References $custom_discovery_url.
Referenced by save().
ilOpenIdConnectSettings::getImageFilePath | ( | ) |
Definition at line 281 of file class.ilOpenIdConnectSettings.php.
References getLoginElementImage(), and ilFileUtils\getWebspaceDir().
|
static |
Definition at line 85 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthFrontendCredentialsOpenIdConnect\__construct(), ilAuthProviderOpenIdConnect\__construct(), ilOpenIdConnectSettingsGUI\__construct(), ilAuthUtils\_getActiveAuthModes(), ilAuthUtils\_isExternalAccountEnabled(), ilObjAuthSettingsGUI\authSettingsObject(), and ilStartUpGUI\showOpenIdConnectLoginForm().
ilOpenIdConnectSettings::getLoginElemenText | ( | ) |
Definition at line 160 of file class.ilOpenIdConnectSettings.php.
References $login_element_text.
Referenced by save().
ilOpenIdConnectSettings::getLoginElementImage | ( | ) |
Definition at line 149 of file class.ilOpenIdConnectSettings.php.
References $login_element_img_name.
Referenced by deleteImageFile(), getImageFilePath(), hasImageFile(), and save().
ilOpenIdConnectSettings::getLoginElementType | ( | ) |
Definition at line 139 of file class.ilOpenIdConnectSettings.php.
References $login_element_type.
Referenced by save().
ilOpenIdConnectSettings::getLoginPromptType | ( | ) |
Definition at line 170 of file class.ilOpenIdConnectSettings.php.
References $login_prompt_type.
Referenced by save().
ilOpenIdConnectSettings::getLogoutScope | ( | ) |
Definition at line 180 of file class.ilOpenIdConnectSettings.php.
References $logout_scope.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFields | ( | ) |
Definition at line 465 of file class.ilOpenIdConnectSettings.php.
Referenced by load(), and save().
ilOpenIdConnectSettings::getProfileMappingFieldUpdate | ( | string | $field | ) |
Definition at line 433 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProfileMappingFieldValue | ( | string | $field | ) |
Definition at line 423 of file class.ilOpenIdConnectSettings.php.
Referenced by save().
ilOpenIdConnectSettings::getProvider | ( | ) |
Definition at line 109 of file class.ilOpenIdConnectSettings.php.
References $provider.
Referenced by save().
ilOpenIdConnectSettings::getRole | ( | ) |
Definition at line 220 of file class.ilOpenIdConnectSettings.php.
References $role.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappings | ( | ) |
Definition at line 303 of file class.ilOpenIdConnectSettings.php.
References $role_mappings.
Referenced by save().
ilOpenIdConnectSettings::getRoleMappingUpdateForId | ( | int | $a_role_id | ) |
Definition at line 317 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getRoleMappingValueForId | ( | int | $a_role_id | ) |
Definition at line 308 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::getSecret | ( | ) |
Definition at line 129 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by save().
ilOpenIdConnectSettings::getSessionDuration | ( | ) |
Definition at line 200 of file class.ilOpenIdConnectSettings.php.
References $session_duration.
Referenced by save().
ilOpenIdConnectSettings::getUidField | ( | ) |
Definition at line 230 of file class.ilOpenIdConnectSettings.php.
References $uid.
Referenced by save().
ilOpenIdConnectSettings::getValidateScopes | ( | ) |
Definition at line 448 of file class.ilOpenIdConnectSettings.php.
References $validate_scopes.
Referenced by load(), and save().
ilOpenIdConnectSettings::hasImageFile | ( | ) |
Definition at line 274 of file class.ilOpenIdConnectSettings.php.
References ILIAS\Repository\filesystem(), and getLoginElementImage().
ilOpenIdConnectSettings::isCustomSession | ( | ) |
Definition at line 190 of file class.ilOpenIdConnectSettings.php.
References $custom_session.
Referenced by save().
ilOpenIdConnectSettings::isSyncAllowed | ( | ) |
Definition at line 205 of file class.ilOpenIdConnectSettings.php.
References $allow_sync.
Referenced by save().
|
protected |
Definition at line 388 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 357 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 94 of file class.ilOpenIdConnectSettings.php.
References $active.
Referenced by load().
ilOpenIdConnectSettings::setAdditionalScopes | ( | array | $additional_scopes | ) |
string[] | $additional_scopes |
Definition at line 247 of file class.ilOpenIdConnectSettings.php.
References $additional_scopes.
Referenced by load().
ilOpenIdConnectSettings::setClientId | ( | string | $client_id | ) |
Definition at line 114 of file class.ilOpenIdConnectSettings.php.
References $client_id.
Referenced by load().
ilOpenIdConnectSettings::setCustomDiscoveryUrl | ( | ?string | $discoveryUrl | ) |
Definition at line 453 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementImage | ( | string | $a_img_name | ) |
Definition at line 144 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementText | ( | string | $text | ) |
Definition at line 154 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLoginElementType | ( | int | $type | ) |
Definition at line 134 of file class.ilOpenIdConnectSettings.php.
References $type.
Referenced by load().
ilOpenIdConnectSettings::setLoginPromptType | ( | int | $a_type | ) |
Definition at line 165 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setLogoutScope | ( | int | $a_scope | ) |
Definition at line 175 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setProfileMappingFieldUpdate | ( | string | $field, |
bool | $value | ||
) |
Definition at line 438 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProfileMappingFieldValue | ( | string | $field, |
string | $value | ||
) |
Definition at line 428 of file class.ilOpenIdConnectSettings.php.
ilOpenIdConnectSettings::setProvider | ( | string | $url | ) |
Definition at line 104 of file class.ilOpenIdConnectSettings.php.
References $url.
Referenced by load().
ilOpenIdConnectSettings::setRole | ( | int | $role | ) |
Definition at line 215 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 295 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setSecret | ( | string | $secret | ) |
Definition at line 124 of file class.ilOpenIdConnectSettings.php.
References $secret.
Referenced by load().
ilOpenIdConnectSettings::setSessionDuration | ( | int | $a_duration | ) |
Definition at line 195 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setUidField | ( | string | $field | ) |
Definition at line 225 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::setValidateScopes | ( | int | $validation_mode | ) |
Definition at line 443 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::useCustomSession | ( | bool | $a_stat | ) |
Definition at line 185 of file class.ilOpenIdConnectSettings.php.
Referenced by load().
ilOpenIdConnectSettings::validateScopes | ( | string | $discoveryURL, |
array | $custom_scopes | ||
) |
Definition at line 326 of file class.ilOpenIdConnectSettings.php.
References $response.
|
private |
Definition at line 51 of file class.ilOpenIdConnectSettings.php.
Referenced by getActive(), and setActive().
|
private |
Definition at line 72 of file class.ilOpenIdConnectSettings.php.
Referenced by getAdditionalScopes(), getAllScopes(), and setAdditionalScopes().
|
private |
Definition at line 62 of file class.ilOpenIdConnectSettings.php.
Referenced by isSyncAllowed().
|
private |
Definition at line 53 of file class.ilOpenIdConnectSettings.php.
Referenced by getClientId(), and setClientId().
|
private |
Definition at line 74 of file class.ilOpenIdConnectSettings.php.
Referenced by getCustomDiscoveryUrl().
|
private |
Definition at line 60 of file class.ilOpenIdConnectSettings.php.
Referenced by isCustomSession().
|
private |
Definition at line 50 of file class.ilOpenIdConnectSettings.php.
|
staticprivate |
Definition at line 47 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 56 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementImage().
|
private |
Definition at line 57 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElemenText().
|
private |
Definition at line 55 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginElementType().
|
private |
Definition at line 58 of file class.ilOpenIdConnectSettings.php.
Referenced by getLoginPromptType().
|
private |
Definition at line 59 of file class.ilOpenIdConnectSettings.php.
Referenced by getLogoutScope().
|
private |
Definition at line 66 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 68 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 52 of file class.ilOpenIdConnectSettings.php.
Referenced by getProvider().
|
private |
Definition at line 63 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 70 of file class.ilOpenIdConnectSettings.php.
Referenced by getRoleMappings().
|
private |
Definition at line 54 of file class.ilOpenIdConnectSettings.php.
Referenced by getSecret(), and setSecret().
|
private |
Definition at line 61 of file class.ilOpenIdConnectSettings.php.
Referenced by getSessionDuration().
|
private |
Definition at line 49 of file class.ilOpenIdConnectSettings.php.
|
private |
Definition at line 64 of file class.ilOpenIdConnectSettings.php.
Referenced by getUidField().
|
private |
Definition at line 73 of file class.ilOpenIdConnectSettings.php.
Referenced by getValidateScopes().
const ilOpenIdConnectSettings::DEFAULT_SCOPE = 'openid' |
Definition at line 32 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::FILE_STORAGE = 'openidconnect/login_form_image' |
Definition at line 31 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\saveImageFromHttpRequest().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_IMG = 1 |
Definition at line 34 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ELEMENT_TYPE_TXT = 0 |
Definition at line 33 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilStartUpGUI\showOpenIdConnectLoginForm().
const ilOpenIdConnectSettings::LOGIN_ENFORCE = 0 |
Definition at line 35 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGIN_STANDARD = 1 |
Definition at line 36 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_GLOBAL = 0 |
Definition at line 37 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::LOGOUT_SCOPE_LOCAL = 1 |
Definition at line 38 of file class.ilOpenIdConnectSettings.php.
Referenced by ilAuthProviderOpenIdConnect\handleLogout(), and ilOpenIdConnectSettingsGUI\initSettingsForm().
|
private |
Definition at line 29 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::URL_VALIDATION_CUSTOM = 1 |
Definition at line 41 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilOpenIdConnectSettingsGUI\saveSettings().
const ilOpenIdConnectSettings::URL_VALIDATION_NONE = 2 |
Definition at line 42 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm().
const ilOpenIdConnectSettings::URL_VALIDATION_PROVIDER = 0 |
Definition at line 40 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\initSettingsForm(), and ilOpenIdConnectSettingsGUI\saveSettings().
const ilOpenIdConnectSettings::VALIDATION_ISSUE_DISCOVERY_ERROR = 1 |
Definition at line 45 of file class.ilOpenIdConnectSettings.php.
const ilOpenIdConnectSettings::VALIDATION_ISSUE_INVALID_SCOPE = 0 |
Definition at line 44 of file class.ilOpenIdConnectSettings.php.
Referenced by ilOpenIdConnectSettingsGUI\saveSettings().