You could try the simplest thing that could possibly work...HTTP Authentication: let the existing security stack earn its keep.
Walden On Nov 18, 6:52 am, "Litty Preeth" <[EMAIL PROTECTED]> wrote: > Hi All, > > What should be the best authentication ans session management in GWT apps? > Currently I am having this idea: > > - Have a method checkSession() which will check for a valid authenticated > session and throws an Exception if no valid session is there. > - Call this method in the beginning of every ServiceImpl method. > - In the onFailure of the async call backs catch this Exception and > display the login page. > > But this method has the following weak points: > > - Some developer may forget to call the checkSession method. > - There is code duplication in the onFailure implementation (Every > onFailure shud handle the authentication exception) > > So any of you have any better ideas? > > Regards, > Litty Preeth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---