Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix CAS authfront plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 12, 2014
1 parent 8dc7231 commit 5c88f0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions core/src/plugins/authfront.cas/class.CasAuthFrontend.php
Expand Up @@ -59,6 +59,8 @@ function tryToLogUser($httpVars, $isLast = false)
$this->forceRedirect = $this->pluginConf["FORCE_REDIRECT"];
}

if(empty($this->cas_server)) return false;

phpCAS::setDebug(AJXP_DATA_PATH . "/logs/debug.log");
if ($GLOBALS['PHPCAS_CLIENT'] == null) {
phpCAS::client(CAS_VERSION_2_0, $this->cas_server, $this->cas_port, $this->cas_uri, false);
Expand Down
3 changes: 1 addition & 2 deletions core/src/plugins/authfront.cas/manifest.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ajxpcore id="authfront.cas" label="CONF_MESSAGE[CAS FrontEnd]" description="CONF_MESSAGE[Authentication by CAS]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<ajxpcore id="authfront.cas" enabled="false" label="CONF_MESSAGE[CAS FrontEnd]" description="CONF_MESSAGE[Authentication by CAS]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<class_definition filename="plugins/authfront.cas/class.CasAuthFrontend.php" classname="CasAuthFrontend"/>
<server_settings>
<global_param name="ORDER" type="integer" label="Order" description="Order this plugin with other auth frontends" default="11" mandatory="true"/>
Expand All @@ -14,7 +14,6 @@
<global_param name="CAS_PORT" type="integer" label="CONF_MESSAGE[CAS Port]" description="CONF_MESSAGE[Port where CAS server is running on]" mandatory="true" />
<global_param name="CAS_URI" type="string" label="CONF_MESSAGE[CAS URI]" description="CONF_MESSAGE[URI for CAS service]" mandatory="true" />
<global_param name="LOGOUT_URL" type="string" label="CONF_MESSAGE[Logout URL]" description="CONF_MESSAGE[Redirect to the given URL on loggin out]" mandatory="true" />
<!-- global_param name="USERS_FILEPATH" type="string" label="CONF_MESSAGE[Users]" description="CONF_MESSAGE[The users list]" mandatory="true" default="AJXP_DATA_PATH/plugins/auth.serial/users.ser"/ -->
</server_settings>

<registry_contributions>
Expand Down

0 comments on commit 5c88f0c

Please sign in to comment.