Update of 
/var/cvs/speeltuin/ernst/vpro-wizards/src/org/mmbase/applications/vprowizards/spring
In directory 
james.mmbase.org:/tmp/cvs-serv26547/applications/vpro-wizards/src/org/mmbase/applications/vprowizards/spring

Modified Files:
        AuthenticationInterceptor.java 
Added Files:
        AuthenticationException.java 
Log Message:
some work on the authentication filter: i don't want to use a redirect because 
that way i can't use the view resolver.


See also: 
http://cvs.mmbase.org/viewcvs/speeltuin/ernst/vpro-wizards/src/org/mmbase/applications/vprowizards/spring


AuthenticationException.java is new



Index: AuthenticationInterceptor.java
===================================================================
RCS file: 
/var/cvs/speeltuin/ernst/vpro-wizards/src/org/mmbase/applications/vprowizards/spring/AuthenticationInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- AuthenticationInterceptor.java      11 Aug 2008 13:03:30 -0000      1.1
+++ AuthenticationInterceptor.java      22 Sep 2008 15:37:17 -0000      1.2
@@ -26,10 +26,10 @@
                }
 
                if(log.isDebugEnabled()){
-                       log.debug("redirecting to "+request.getContextPath() +  
loginPage);
+                       log.debug("not logged in. Throw 
AuthenticationException");
                }
-               response.sendRedirect(request.getContextPath() + loginPage);
-               return false;
+//             response.sendRedirect(request.getContextPath() + loginPage);
+               throw new AuthenticationException();
        }
 
        /**
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to