Author: sohil.shah(a)jboss.com
Date: 2009-11-14 15:34:31 -0500 (Sat, 14 Nov 2009)
New Revision: 13827
Modified:
jbossexo/modules/sso/trunk/auth-callback/src/main/java/org/gatein/sso/authentication/callback/AuthenticationHandler.java
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/config/deployerConfigContext.xml
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/java/org/gatein/sso/cas/plugin/AuthenticationPlugin.java
Log:
CAS integration success baseline. This one works end-to-end
Modified:
jbossexo/modules/sso/trunk/auth-callback/src/main/java/org/gatein/sso/authentication/callback/AuthenticationHandler.java
===================================================================
---
jbossexo/modules/sso/trunk/auth-callback/src/main/java/org/gatein/sso/authentication/callback/AuthenticationHandler.java 2009-11-14
20:19:19 UTC (rev 13826)
+++
jbossexo/modules/sso/trunk/auth-callback/src/main/java/org/gatein/sso/authentication/callback/AuthenticationHandler.java 2009-11-14
20:34:31 UTC (rev 13827)
@@ -63,9 +63,9 @@
{
try
{
- log.info("---------------------------------------");
- log.info("Username: "+username);
- log.info("Password: "+password);
+ log.debug("---------------------------------------");
+ log.debug("Username: "+username);
+ log.debug("Password: "+password);
ExoContainer container = this.getContainer();
Authenticator authenticator = (Authenticator)
getContainer().getComponentInstanceOfType(Authenticator.class);
Modified:
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/config/deployerConfigContext.xml
===================================================================
---
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/config/deployerConfigContext.xml 2009-11-14
20:19:19 UTC (rev 13826)
+++
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/config/deployerConfigContext.xml 2009-11-14
20:34:31 UTC (rev 13827)
@@ -91,8 +91,12 @@
<!--
<bean
class="org.jasig.cas.authentication.handler.support.SimpleTestUsernamePasswordAuthenticationHandler"
/>
-->
- <!-- Integrates with the Gatein Authentication Service to perform
authentication -->
- <bean class="org.gatein.sso.cas.server.AuthenticationPlugin">
+ <!-- Integrates with the Gatein Authentication Service to perform
authentication -->
+ <!--
+ Note: Modify the Plugin Configuration based on the actual information of a GateIn
instance.
+ The instance can be anywhere on the internet...Not on localhost where CAS is
running
+ -->
+ <bean class="org.gatein.sso.cas.plugin.AuthenticationPlugin">
<property
name="gateInHost"><value>localhost</value></property>
<property
name="gateInPort"><value>1500</value></property>
<property
name="gateInContext"><value>portal</value></property>
Modified:
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/java/org/gatein/sso/cas/plugin/AuthenticationPlugin.java
===================================================================
---
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/java/org/gatein/sso/cas/plugin/AuthenticationPlugin.java 2009-11-14
20:19:19 UTC (rev 13826)
+++
jbossexo/modules/sso/trunk/gatein-cas-plugin/src/main/java/org/gatein/sso/cas/plugin/AuthenticationPlugin.java 2009-11-14
20:34:31 UTC (rev 13827)
@@ -93,9 +93,9 @@
StringBuilder urlBuffer = new StringBuilder();
urlBuffer.append("http://"+this.gateInHost+":"+this.gateInPort+"/"+this.gateInContext+"/rest/sso/authcallback/auth/"+username+"/"+password);
-
log.info("-------------------------------------------------------------------");
- log.info("REST Request="+urlBuffer.toString());
-
log.info("-------------------------------------------------------------------");
+
log.debug("-------------------------------------------------------------------");
+ log.debug("REST Request="+urlBuffer.toString());
+
log.debug("-------------------------------------------------------------------");
return this.executeRemoteCall(urlBuffer.toString());
}