Guidelines for RequestFactory Security/Authentication

2011-04-03 Thread Eric
Hi. I'm trying to implement Spring security over RequstFactory with GWT2.1 After some searching I've found some posts on this list but they're missing some explanation. In all the examples I could find I could see people writing the login page in JSP and I was wondering if the this is the only

Re: RequestFactory Security/Authentication

2010-11-26 Thread Ramon Buckland
Yes this does happen. So the answer is: jsp:output omit-xml-declaration=yes / jsp:directive.page pageEncoding=ISO-8859-1 contentType=text/html; ISO-8859-1 / This intructs the jspx file ( an XML file ) to tell your browser it has to be rendered as text/html. Sets the

Re: RequestFactory Security/Authentication

2010-11-25 Thread Patrick Hilsbos
actually i'm only getting xml output; looks kinda strange. how does your header look like? --- div xmlns:spring=http://www.springframework.org/tags; xmlns:fn=http://java.sun.com/jsp/jstl/functions; xmlns:c=http://java.sun.com/jsp/jstl/core;

Re: RequestFactory Security/Authentication

2010-11-24 Thread Ramon Buckland
Hi Patrick, I just finished (10 mins ago) implementing my Spring Security service over the top of the Requestfactory. I am sure there are some holes (not security ones, just stuff I have missed) but here is what I did. I have a user entity (that represents the user). this entity has the

Re: RequestFactory Security/Authentication

2010-11-24 Thread Patrick Hilsbos
Thx a lot... how does your web.xml look like and where have you put your login.jspx view? src main webapps view ? i think im missing the controller referred in webmvc. cheers patrick On 24.11.2010, at 17:13, Ramon Buckland wrote: beans:bean id=myUserDetailsService

Re: RequestFactory Security/Authentication

2010-11-24 Thread Ramon Buckland
I do have a dispatcherServlet (serves up other stuff). My web.xml ?xml version=1.0 encoding=ISO-8859-1 standalone=no? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance version=2.4 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee

Re: RequestFactory Security/Authentication

2010-11-24 Thread Patrick Hilsbos
looks the same over here... jogin.jspx get me a not found... /login gets me: HTTP ERROR: 500 Circular view path [login]: would dispatch back to the current handler URL [/login] again. very strange - also set up a new project without gwt but having the same problems there ... On

Re: RequestFactory Security/Authentication

2010-11-24 Thread Ramon Buckland
my login.jspx is just a file in the root (src/main/webapp/login.jspx) I also saw that circular reference thingo (ignored it and moved the file out of WEB-INF/views/login.jspx to /login.jspx .. (again , a time thing, had no time to debug why(). On Nov 24, 10:16 pm, Patrick Hilsbos

Re: RequestFactory Security/Authentication

2010-11-24 Thread Patrick Hilsbos
now i think i am about to have it running... found that sample project with correct strcture, maybe were able to get wiring out of that project. http://code.google.com/p/wha On 24.11.2010, at 23:20, Ramon Buckland wrote: my login.jspx is just a file in the root (src/main/webapp/login.jspx)

Re: RequestFactory Security/Authentication

2010-11-24 Thread Patrick Hilsbos
now im stuck at that point HTTP ERROR: 500 javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; RequestURI=/login.jspx Caused by: java.lang.AbstractMethodError: javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; removed all the message stuff, util taglib / panel

Re: RequestFactory Security/Authentication

2010-11-12 Thread Patrick Hilsbos
Hi, could you get a bit more in detail, how to implement the auth - e.g. where to store the authcode? Do i have to create a session on my own...? I already went through a couple of projects dealing with spring security / acegi. Thanks !!! On 10.11.2010, at 17:57, Jack wrote: Everytime a

RequestFactory Security/Authentication

2010-11-10 Thread Max E.
Hello, I'm having problems to understand how User Authentication works with the RequestFactory. I do understand the documentation and the expenses example. How is it possible to implement Authentication/ How do users login? How can Users only view the Entities they are allowed to see. How can

Re: RequestFactory Security/Authentication

2010-11-10 Thread Jack
Everytime a request is made the RequestFactoryServlet loads an implementation of UserInformation and calls boolean isUserLoggedIn(). If you do not provide a custom UserInformation implementation a SimpleUserInformationImpl will be choosen which always returns true for isUserLoggedIn(). To define