DevAuthentificationCas » Historique » Version 2
Thomas Belliard, 29/04/2014 09:25
1 | 1 | Thomas Belliard | h1. Dev Authentification Cas |
---|---|---|---|
2 | |||
3 | Patch pour permettre l'utilisation de phpCAS dans une config de reverse proxy. Utilise, si disponible, une base d'URL fourni à la configuration (définie dans connect.inc.php avec $gepiBaseUrl). |
||
4 | |||
5 | 2 | Thomas Belliard | Ces instructions sont valables sur la version 1.3.2 de phpCAS. Cf le commit suivant : https://github.com/tbelliard/gepi/commit/9988db44559944a3dd3fbc7237b8e700a3752ee9 |
6 | 1 | Thomas Belliard | |
7 | Ajout d'un paramètre 'service_address' dans CAS.php sur 'public static function client'. |
||
8 | |||
9 | 2 | Thomas Belliard | Ajout de ce paramètre dans l'initialisation de CAS_Client (dans cette même méthode) |
10 | 1 | Thomas Belliard | |
11 | 2 | Thomas Belliard | Ajout du paramètre dans CAS/Client.php, dans le constructeur. |
12 | |||
13 | 1 | Thomas Belliard | On l'initialize en tant que $this->_server_base_url. |
14 | |||
15 | Mise à jour de la méthode getURL : |
||
16 | <pre> |
||
17 | # Forcing base url if specified explicitly |
||
18 | if ($this->_server_base_url != null) { |
||
19 | $final_uri .= $this->_server_base_url; |
||
20 | } else { |
||
21 | $final_uri = ($this->isHttps()) ? 'https' : 'http'; |
||
22 | $final_uri .= '://'; |
||
23 | $final_uri .= $this->getServerUrl(); |
||
24 | } |
||
25 | </pre> |