Reviewers: rjrjr,

Description:
Adds user authentication to MobileWebApp.  Tasks are now specific to
each user.  Authentication is done using a Filter, which was copied
almost verbatim from the expenses sample.  If a user is not logged in,
they are forwarded to the login page, then redirected back to their last
place in the app.  If a user tries to access a task that they do not
own, an error messge says that the task cannot be found.

You can view a demo at http://jlabanca-testing.appspot.com

This change also replaces the auto generated datastore index file with a
manual datastore index file.  There aren't any indexes yet, but we may
add them eventually, and using an auto-generated file is asking for
trouble because its easy enough to miss a possible index.


Please review this at http://gwt-code-reviews.appspot.com/1432801/

Affected files:
A samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/GaeRequest.gwt.xml A samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/client/GaeAuthRequestTransport.java A samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/client/GaeAuthenticationFailureEvent.java A samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/client/ReloadOnAuthenticationFailure.java A samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/server/GaeAuthFilter.java A samples/mobilewebapp/src/main/com/google/gwt/sample/gaerequest/shared/GaeHelper.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/ClientFactoryImpl.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/client/MobileWebApp.java M samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/server/domain/Task.java A samples/mobilewebapp/src/main/com/google/gwt/sample/mobilewebapp/server/domain/UserServiceWrapper.java
  A samples/mobilewebapp/war/WEB-INF/datastore-indexes.xml
  M samples/mobilewebapp/war/WEB-INF/web.xml


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to