[gatein-commits] gatein SVN: r6146 - components/wci/trunk/wci/src/main/java/org/gatein/wci/authentication.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Mar 30 16:58:26 EDT 2011


Author: mwringe
Date: 2011-03-30 16:58:26 -0400 (Wed, 30 Mar 2011)
New Revision: 6146

Modified:
   components/wci/trunk/wci/src/main/java/org/gatein/wci/authentication/GenericAuthentication.java
Log:
GTNPORTAL-1845: allow the credentials to be always available in the session. This way we can use the http session to retrieve the actual username and password.

Modified: components/wci/trunk/wci/src/main/java/org/gatein/wci/authentication/GenericAuthentication.java
===================================================================
--- components/wci/trunk/wci/src/main/java/org/gatein/wci/authentication/GenericAuthentication.java	2011-03-30 15:21:05 UTC (rev 6145)
+++ components/wci/trunk/wci/src/main/java/org/gatein/wci/authentication/GenericAuthentication.java	2011-03-30 20:58:26 UTC (rev 6146)
@@ -42,8 +42,6 @@
   {
      String ticket = TICKET_SERVICE.createTicket(new Credentials(credentials.getUsername(), credentials.getPassword()), validityMillis);
 
-     request.getSession().removeAttribute(Credentials.CREDENTIALS);
-
      if (initialURI == null) {
         initialURI = request.getRequestURI();
      }



More information about the gatein-commits mailing list