DevAuthentificationCas » Historique » Version 1
Thomas Belliard, 12/12/2010 08:29
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 | Ces instructions sont valables sur la version 1.2.0 de phpCAS. |
||
6 | |||
7 | Ajout d'un paramètre 'service_address' dans CAS.php sur 'public static function client'. |
||
8 | |||
9 | Ajout de ce paramètre dans l'initialisation de CASClient (dans cette même méthode) |
||
10 | |||
11 | Ajout du paramètre dans CAS/client.php méthod 'public function CASClient' (le constructeur). |
||
12 | On l'initialize en tant que $this->_server_base_url. |
||
13 | |||
14 | Mise à jour de la méthode getURL : |
||
15 | <pre> |
||
16 | # Forcing base url if specified explicitly |
||
17 | if ($this->_server_base_url != null) { |
||
18 | $final_uri .= $this->_server_base_url; |
||
19 | } else { |
||
20 | $final_uri = ($this->isHttps()) ? 'https' : 'http'; |
||
21 | $final_uri .= '://'; |
||
22 | $final_uri .= $this->getServerUrl(); |
||
23 | } |
||
24 | </pre> |