Skip to content

Commit b7d91df

Browse files
RillkemjansenDatabay
authored andcommitted
42733: Update CAS use instructions in settings GUI (ILIAS-eLearning#8489)
* 42733: Update CAS use instructions in settings GUI see https://mantis.ilias.de/view.php?id=42733 see ILIAS-eLearning#8434 (comment) * Update license header * CAS: Obtain factory before using it * CAS: Add instructions for more languages * CAS: Drop outdated instructions (cherry picked from commit cebf5ef)
1 parent a3a807e commit b7d91df

11 files changed

+34
-21
lines changed

Services/CAS/classes/class.ilCASSettingsGUI.php

+24-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
<?php
22

3-
declare(strict_types=1);
4-
5-
/******************************************************************************
6-
*
7-
* This file is part of ILIAS, a powerful learning management system.
3+
/**
4+
* This file is part of ILIAS, a powerful learning management system
5+
* published by ILIAS open source e-Learning e.V.
86
*
9-
* ILIAS is licensed with the GPL-3.0, you should have received a copy
10-
* of said license along with the source code.
7+
* ILIAS is licensed with the GPL-3.0,
8+
* see https://www.gnu.org/licenses/gpl-3.0.en.html
9+
* You should have received a copy of said license along with the
10+
* source code, too.
1111
*
1212
* If this is not the case or you just want to try ILIAS, you'll find
1313
* us at:
14-
* https://www.ilias.de
15-
* https://github.com/ILIAS-eLearning
14+
* https://www.ilias.de
15+
* https://github.com/ILIAS-eLearning
1616
*
17-
*****************************************************************************/
17+
*********************************************************************/
18+
19+
declare(strict_types=1);
1820

1921
/**
2022
* @author Stefan Meyer <[email protected]>
@@ -49,6 +51,9 @@ public function __construct(int $a_auth_ref_id)
4951
$this->lng->loadLanguageModule('registration');
5052
$this->lng->loadLanguageModule('auth');
5153

54+
$this->renderer = $DIC->ui()->renderer();
55+
$this->factory = $DIC->ui()->factory();
56+
5257
$this->ref_id = $a_auth_ref_id;
5358

5459
$this->settings = ilCASSettings::getInstance();
@@ -87,7 +92,15 @@ protected function initFormSettings(): ilPropertyFormGUI
8792
$form->setFormAction($this->ctrl->getFormAction($this));
8893

8994
$form->setTitle($this->lng->txt('auth_cas_auth'));
90-
$form->setDescription($this->lng->txt("auth_cas_auth_desc"));
95+
96+
$drop_in_replacements_url = 'https://github.com/ILIAS-eLearning/ILIAS/tree/trunk/components/ILIAS/HTTP#dropinreplacements';
97+
$drop_in_replacements_link = $this->factory->link()->standard(
98+
$this->lng->txt("auth_cas_auth_desc"),
99+
$drop_in_replacements_url
100+
);
101+
$form->setDescription($this->renderer->render(
102+
$drop_in_replacements_link
103+
));
91104

92105
// Form checkbox
93106
$check = new ilCheckboxInputGUI($this->lng->txt("active"), 'active');

lang/ilias_da.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ common#:#auth_allow_local#:#Tillad lokal autentificering
35283528
common#:#auth_cas#:#CAS
35293529
common#:#auth_cas_allow_local_desc#:#Tillader CAS brugere at authentisere ved brug af deres lokale ILIAS brugernavn og lokale password.
35303530
common#:#auth_cas_auth#:#Konfigurer CAS autentificering
3531-
common#:#auth_cas_auth_desc#:#CAS kræver PHP 4.3.1 eller senere med CURL support (7.5 eller senere)
3531+
common#:#auth_cas_auth_desc#:#For at CAS-godkendelse kan fungere, skal serverindstillingen prevent_super_global_replacement i client.ini.php være indstillet.
35323532
common#:#auth_cas_port_desc#:#E.g. 443 if the full CAS server URI is https://auth.yourserver.com:443/cas/
35333533
common#:#auth_cas_server_desc#:#F.eks. auth.yourserver.com hvis den fulde CAS server URI er https://auth.yourserver.com:443/cas/
35343534
common#:#auth_cas_uri_desc#:#Local URI, e.g. cas if the full CAS server URI is https://auth.yourserver.com:443/cas/

lang/ilias_de.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3532,7 +3532,7 @@ common#:#auth_allow_local#:#Erlaube lokale Authentifizierung
35323532
common#:#auth_cas#:#CAS
35333533
common#:#auth_cas_allow_local_desc#:#Erlaubt Personen mit CAS-Konten, sich mit ihrem lokalen ILIAS-Anmeldenamen und -Passwort anzumelden.
35343534
common#:#auth_cas_auth#:#Konfiguriere CAS-Authentifizierung
3535-
common#:#auth_cas_auth_desc#:#CAS erfordert PHP 4.3.1 oder höher mit CURL-Unterstützung (7.5 oder höher)
3535+
common#:#auth_cas_auth_desc#:#Damit die CAS-Authentifizierung funktioniert, muss die Servereinstellung prevent_super_global_replacement in der Datei client.ini.php gesetzt sein.
35363536
common#:#auth_cas_port_desc#:#Zum Beispiel "443" bei einer CAS-Server-URI "https://auth.yourserver.com:443/cas/"
35373537
common#:#auth_cas_server_desc#:#Zum Beispiel "auth.yourserver.com" bei einer CAS-Server-URI "https://auth.yourserver.com:443/cas/"
35383538
common#:#auth_cas_uri_desc#:#Lokale URI, zum Beispiel "cas" bei einer CAS-Server-URI "https://auth.yourserver.com:443/cas/"

lang/ilias_en.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3532,7 +3532,7 @@ common#:#auth_allow_local#:#Allow Local Authentication
35323532
common#:#auth_cas#:#CAS
35333533
common#:#auth_cas_allow_local_desc#:#Allows CAS users to authenticate themselves with their local ILIAS username and a local password.
35343534
common#:#auth_cas_auth#:#Configure CAS Authentication
3535-
common#:#auth_cas_auth_desc#:#CAS requires PHP 4.3.1 or higher with CURL support (7.5 or higher)
3535+
common#:#auth_cas_auth_desc#:#For CAS authentication to work, the server setting prevent_super_global_replacement in client.ini.php must be set.
35363536
common#:#auth_cas_port_desc#:#E.g. 443 if the full CAS server URI is https://auth.yourserver.com:443/cas/
35373537
common#:#auth_cas_server_desc#:#E.g. auth.yourserver.com if the full CAS server URI is https://auth.yourserver.com:443/cas/
35383538
common#:#auth_cas_uri_desc#:#Local URI, e.g. cas if the full CAS server URI is https://auth.yourserver.com:443/cas/

lang/ilias_es.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3530,7 +3530,7 @@ common#:#auth_allow_local#:#Permitir Autenticación Local
35303530
common#:#auth_cas#:#CAS
35313531
common#:#auth_cas_allow_local_desc#:#Esto le permite a los usuarios CAS autenticarse con su usuario local ILIAS y una contraseña local
35323532
common#:#auth_cas_auth#:#Configurar autenticación CAS
3533-
common#:#auth_cas_auth_desc#:#CAS requiere PHP 4.3.1 o superior con soporte CURL (7.5 o superior)
3533+
common#:#auth_cas_auth_desc#:#Para que la autenticación CAS funcione, debe establecerse la configuración del servidor prevent_super_global_replacement en client.ini.php.
35343534
common#:#auth_cas_port_desc#:#Ej. 443 si la URI del servidor CAS es https://auth.yourserver.com:443/cas/
35353535
common#:#auth_cas_server_desc#:#Ej. auth.yourserver.com si la URI del servidor CAS es https://auth.yourserver.com:443/cas/
35363536
common#:#auth_cas_uri_desc#:#Local URI, e.g. cas si la URI del servidor CAS https://auth.yourserver.com:443/cas/

lang/ilias_fr.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ common#:#auth_allow_local#:#Autoriser l'Authentification Locale
35283528
common#:#auth_cas#:#CAS
35293529
common#:#auth_cas_allow_local_desc#:#Permet aux utilisateurs authentifiés par CAS de se connecter avec leur identifiant et leur mot de passe local.
35303530
common#:#auth_cas_auth#:#Configurer l'Authentification CAS
3531-
common#:#auth_cas_auth_desc#:#CAS requiert PHP 4.3.1 ou supérieur avec support de CURL (7.5 ou supérieur)
3531+
common#:#auth_cas_auth_desc#:#Pour que l'authentification CAS fonctionne, le paramètre serveur prevent_super_global_replacement dans client.ini.php doit être défini.
35323532
common#:#auth_cas_port_desc#:#Par ex. 443 si l'URI du serveur CAS est https://auth.yourserver.com:443/cas/
35333533
common#:#auth_cas_server_desc#:#Par ex. auth.yourserver.com si l'URI du serveur CAS est https://auth.yourserver.com:443/cas/
35343534
common#:#auth_cas_uri_desc#:#URI local, par ex. cas si l'URI du serveur CAS est https://auth.yourserver.com:443/cas/

lang/ilias_it.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3527,7 +3527,7 @@ common#:#auth_allow_local#:#Consenti Autenticazione Locale
35273527
common#:#auth_cas#:#CAS
35283528
common#:#auth_cas_allow_local_desc#:#Ciò consente agli utenti CAS di autenticarsi con il nome utente ILIAS e password locali.
35293529
common#:#auth_cas_auth#:#Configura CAS Authentication
3530-
common#:#auth_cas_auth_desc#:#CAS richiede PHP 4.3.1 o superiore con supporto CURL (7.5 o superiore)
3530+
common#:#auth_cas_auth_desc#:#Affinché l'autenticazione CAS funzioni, è necessario impostare l'impostazione del server prevent_super_global_replacement in client.ini.php.
35313531
common#:#auth_cas_port_desc#:#Ad esempio 443 se l’URI del server CAS completo è https://auth.yourserver.com:443/cas/
35323532
common#:#auth_cas_server_desc#:#Ad esempio auth.yourserver.com se l’URI del server CAS completo è https://auth.yourserver.com:443/cas/
35333533
common#:#auth_cas_uri_desc#:#URI locale, ad esempio cas se l’URI del server CAS completo è https://auth.yourserver.com:443/cas/

lang/ilias_nl.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ common#:#auth_allow_local#:#Sta lokale authenticatie toe
35283528
common#:#auth_cas#:#CAS
35293529
common#:#auth_cas_allow_local_desc#:#This allows CAS users to authenticate with their local ILIAS username and a local password.
35303530
common#:#auth_cas_auth#:#Configure CAS Authentication
3531-
common#:#auth_cas_auth_desc#:#CAS requires PHP 4.3.1 or higher with CURL support (7.5 or higher)
3531+
common#:#auth_cas_auth_desc#:#Om CAS-authenticatie te laten werken, moet de serverinstelling prevent_super_global_replacement in client.ini.php ingesteld zijn.
35323532
common#:#auth_cas_port_desc#:#E.g. 443 if the full CAS server URI is https://auth.yourserver.com:443/cas/
35333533
common#:#auth_cas_server_desc#:#E.g. auth.yourserver.com if the full CAS server URI is https://auth.yourserver.com:443/cas/
35343534
common#:#auth_cas_uri_desc#:#Local URI, e.g. cas if the full CAS server URI is https://auth.yourserver.com:443/cas/

lang/ilias_pt.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ common#:#auth_allow_local#:#Autorizar autenticação local
35283528
common#:#auth_cas#:#CAS
35293529
common#:#auth_cas_allow_local_desc#:#Isto permite aos utilizadores CAS autenticarem-se com o seu nome de utilizador ILIAS local e uma palavra-passe local.
35303530
common#:#auth_cas_auth#:#Configurar autenticação CAS
3531-
common#:#auth_cas_auth_desc#:#CAS requer PHP 4.3.1 ou superior com suporte CURL (7.5 ou superior)
3531+
common#:#auth_cas_auth_desc#:#Para que a autenticação CAS funcione, a configuração do servidor prevent_super_global_replacement em client.ini.php deve ser definida.
35323532
common#:#auth_cas_port_desc#:#P. ex. 443 se o URI de servidor CAS inteiro URI for https://auth.yourserver.com:443/cas/
35333533
common#:#auth_cas_server_desc#:#P. ex. auth.yourserver.com se o URI de servidor CAS inteiro for https://auth.yourserver.com:443/cas/
35343534
common#:#auth_cas_uri_desc#:#Local URI, p. ex. cas se o URI de servidor CAS inteiro for https://auth.yourserver.com:443/cas/

lang/ilias_ro.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ common#:#auth_allow_local#:#Allow Local Authentication###10 Jul 2006 new variabl
35283528
common#:#auth_cas#:#CAS###10 Jul 2006 new variable
35293529
common#:#auth_cas_allow_local_desc#:#This allows CAS users to authenticate with their local ILIAS username and a local password.###10 Jul 2006 new variable
35303530
common#:#auth_cas_auth#:#Configure CAS Authentication###10 Jul 2006 new variable
3531-
common#:#auth_cas_auth_desc#:#CAS requires PHP 4.3.1 or higher with CURL support (7.5 or higher)###10 Jul 2006 new variable
3531+
common#:#auth_cas_auth_desc#:#Pentru ca autentificarea CAS să funcționeze, setarea serverului prevent_super_global_replacement din client.ini.php trebuie să fie setată.
35323532
common#:#auth_cas_port_desc#:#E.g. 443 if the full CAS server URI is https://auth.yourserver.com:443/cas/###10 Jul 2006 new variable
35333533
common#:#auth_cas_server_desc#:#E.g. auth.yourserver.com if the full CAS server URI is https://auth.yourserver.com:443/cas/###10 Jul 2006 new variable
35343534
common#:#auth_cas_uri_desc#:#Local URI, e.g. cas if the full CAS server URI is https://auth.yourserver.com:443/cas/###10 Jul 2006 new variable

lang/ilias_sv.lang

+1-1
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ common#:#auth_allow_local#:#Tillåt lokal autentisering
35283528
common#:#auth_cas#:#CAS
35293529
common#:#auth_cas_allow_local_desc#:#Tillåter personer med CAS-konton att logga in med sitt lokala ILIAS-inloggningsnamn och lösenord.
35303530
common#:#auth_cas_auth#:#Konfigurera CAS-autentisering
3531-
common#:#auth_cas_auth_desc#:#CAS kräver PHP 4.3.1 eller senare med stöd för CURL (7.5 eller senare)
3531+
common#:#auth_cas_auth_desc#:#För att CAS-autentisering ska fungera måste serverinställningen prevent_super_global_replacement i client.ini.php vara inställd.
35323532
common#:#auth_cas_port_desc#:#Till exempel "443" för en CAS-server URI "https
35333533
common#:#auth_cas_server_desc#:#Till exempel "auth.yourserver.com" för en CAS-server URI "https
35343534
common#:#auth_cas_uri_desc#:#Lokal URI, t.ex. "cas" för en CAS-server URI "https

0 commit comments

Comments
 (0)