[Fusionforge-commits] r15778 - in trunk/src/plugins/authcas: etc include

Olivier Berger olberger at fusionforge.org
Thu Jun 14 14:29:48 CEST 2012


Author: olberger
Date: 2012-06-14 14:29:47 +0200 (Thu, 14 Jun 2012)
New Revision: 15778

Modified:
   trunk/src/plugins/authcas/etc/authcas.ini
   trunk/src/plugins/authcas/include/AuthCASPlugin.class.php
Log:
Add cas_context parameter

Modified: trunk/src/plugins/authcas/etc/authcas.ini
===================================================================
--- trunk/src/plugins/authcas/etc/authcas.ini	2012-06-14 12:29:41 UTC (rev 15777)
+++ trunk/src/plugins/authcas/etc/authcas.ini	2012-06-14 12:29:47 UTC (rev 15778)
@@ -18,4 +18,5 @@
 cas_server = cas.example.com
 cas_port = 443
 cas_version = 2.0
+cas_context = /cas
 validate_server_certificate = no

Modified: trunk/src/plugins/authcas/include/AuthCASPlugin.class.php
===================================================================
--- trunk/src/plugins/authcas/include/AuthCASPlugin.class.php	2012-06-14 12:29:41 UTC (rev 15777)
+++ trunk/src/plugins/authcas/include/AuthCASPlugin.class.php	2012-06-14 12:29:47 UTC (rev 15778)
@@ -56,7 +56,7 @@
 		phpCAS::client(forge_get_config('cas_version', $this->name),
 			       forge_get_config('cas_server', $this->name),
 			       intval(forge_get_config('cas_port', $this->name)),
-			       '');
+			       forge_get_config('cas_context', $this->name));
 		if (forge_get_config('validate_server_certificate', $this->name)) {
 			// TODO
 		} else {
@@ -171,6 +171,7 @@
 		forge_define_config_item ('cas_server', $this->name, 'cas.example.com');
 		forge_define_config_item ('cas_port', $this->name, 443);
 		forge_define_config_item ('cas_version', $this->name, '2.0');
+		forge_define_config_item ('cas_context', $this->name, '/cas');
 
 		forge_define_config_item('validate_server_certificate', $this->name, 'no');
 		forge_set_config_item_bool('validate_server_certificate', $this->name);




More information about the Fusionforge-commits mailing list