Re: login/logout/remember

2010-08-05 Thread fermierul
To me it seems there is a problem with your approach. It looks like PadroesSession is a singleton class per entire server application, and it holds only one request and session a time, while in a multi-client application you will have a session for each client connection. This means that: - if

Re: login/logout/remember

2010-06-16 Thread Bruno Lopes
An serializable object from the persistence side. On Wed, Jun 16, 2010 at 6:46 AM, Magnus alpineblas...@googlemail.comwrote: What's PersonDTO? Magnus On 3 Jun., 22:36, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Then on the server side for the LoginService public LoginResponse

Re: login/logout/remember

2010-06-15 Thread Magnus
What's PersonDTO? Magnus On 3 Jun., 22:36, Bruno Lopes bruno.lourenco.lo...@gmail.com wrote: Then on the server side for the LoginService public LoginResponse login(String username, String password) {         LoginPService loginService = ServiceLocator.getLoginService();         PersonDTO

Re: login/logout/remember

2010-06-03 Thread Magnus
Hi, thank you for the code! I adopted it to my application. So you authenticate the user via the remote service! But how do you actually store the user context the app is running in? Do you do some session management? Thanks Magnus On Jun 2, 7:15 pm, Bruno Lopes bruno.lourenco.lo...@gmail.com

Re: login/logout/remember

2010-06-03 Thread Bruno Lopes
YES on the server side I have something like this: public class PadroesSession implements Serializable{ private static PadroesSession padroesSession=null; public static PadroesSession getInstance(){ if(padroesSession == null){ padroesSession = new PadroesSession();

Re: login/logout/remember

2010-06-03 Thread Bruno Lopes
Then on the server side for the LoginService public LoginResponse login(String username, String password) { LoginPService loginService = ServiceLocator.getLoginService(); PersonDTO personDTO = null; try { personDTO = loginService.getUserByUsername(username);

login/logout/remember

2010-06-02 Thread Magnus
Hi, I cannot find a minimalistic example that shows how to realize a login/ logout functionality. Could please someone point me to such an example? I also wonder where to put the different things. For example, the code that immediately reacts on the login button could be placed within the client

Re: login/logout/remember

2010-06-02 Thread Bruno Lopes
Hi Alpine Bluster, look at this code: public void onModuleLoad() { this.setLoginPanel(); loginButton = new Button(Login); loginButton.addListener(new ButtonListenerAdapter() { public void onClick(Button button, EventObject e) { userAuthentication(); } });

Re: GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-21 Thread lineman78
to show the login screen. -Manolo On Wed, Apr 7, 2010 at 8:17 PM, yccheok yancheng.ch...@gmail.com wrote: Does anyone have a good code example, on how to implement login/logout/ remember me feature, using GWT, with concern on Cross-Site Request Forgeries. My plan is to use HttpOnly

GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread yccheok
Does anyone have a good code example, on how to implement login/logout/ remember me feature, using GWT, with concern on Cross-Site Request Forgeries. My plan is to use HttpOnly : http://www.codinghorror.com/blog/2008/08/protecting-your-cookies-httponly.html However, I am not sure whether

Re: GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread Manuel Carrasco Moñino
the GWT application it has to ask the server via RPC to know if the user has the appropriate cookies, if not you have to show the login screen. -Manolo On Wed, Apr 7, 2010 at 8:17 PM, yccheok yancheng.ch...@gmail.com wrote: Does anyone have a good code example, on how to implement login/logout

Re: GWT Login/ Logout/ Remember Me (with concern in preventing Cross-Site Request Forgeries) Example

2010-04-07 Thread Sripathi Krishnan
if the user has the appropriate cookies, if not you have to show the login screen. -Manolo On Wed, Apr 7, 2010 at 8:17 PM, yccheok yancheng.ch...@gmail.com wrote: Does anyone have a good code example, on how to implement login/logout/ remember me feature, using GWT, with concern on Cross-Site