33 private const DEFAULT_IDP_LIST =
"urn:mace:organization1:providerID, Example Organization 1\nurn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/SWITCHaai";
57 'institution' =>
false,
58 'department' =>
false,
63 'phone_office' =>
false,
64 'phone_home' =>
false,
65 'phone_mobile' =>
false,
67 'matriculation' =>
false,
86 public function read(): void
88 $filtered_data = array_filter(
90 static fn($value,
string $key):
bool => str_starts_with($key, self::PREFIX),
94 array_walk($filtered_data,
function ($v,
string $k):
void {
95 $this->data[str_replace(self::PREFIX,
'', $k)] = $v ===
'' ? null : $v;
99 public function get(
string $a_keyword, ?
string $a_default_value =
null):
string
101 $a_keyword = str_replace(self::PREFIX,
'', $a_keyword);
103 return (
string) ($this->data[$a_keyword] ?? $a_default_value);
111 public function set(
string $a_key,
string $a_val):
void
113 $a_key = str_replace(self::PREFIX,
'', $a_key);
114 $this->data[$a_key] = $a_val;
119 foreach ($this->data as $key => $value) {
120 $this->
settings->set(self::PREFIX . $key, (
string) $value);
126 return $this->data[
'user_default_role'] ?? 4;
131 $this->data[
'user_default_role'] = $role_id;
141 $this->data[
'idp_list'] = $list;
151 $this->data[
'login_button'] = $login_button;
161 $this->data[
'hos_type'] = $type;
166 return (
bool) ($this->data[
'active'] ??
false);
171 $this->data[
'active'] = $status;
176 return (
bool) ($this->data[
'auth_allow_local'] ??
false);
181 $this->data[
'auth_allow_local'] = $status;
191 $this->data[
'account_creation'] = $value;
196 return ($this->data[
'federation_name'] ??
'');
201 $this->data[
'federation_name'] = $federation;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setAllowLocalAuth(bool $status)
setFederationName(string $federation)
const DEFAULT_LOGIN_BUTTON
setDefaultRole(int $role_id)
getOrganisationSelectionType()
setLoginButton(string $login_button)
const ACCOUNT_CREATION_ENABLED
const ACCOUNT_CREATION_DISABLED
const ACCOUNT_CREATION_WITH_APPROVAL
const DEFAULT_ORGANISATION_SELECTION
setAccountCreation(string $value)
setOrganisationSelectionType(string $type)