Question

Are there any good tutorials on creating a registration form and login screen with password using Google Web Toolkit?

Was it helpful?

Solution

Take a look at the google-web-toolkit-incubator's Login FAQ which describes how to create a login page and store data in a secure fashion.

OTHER TIPS

if you are using AppEngine, this is probably the best tutorial around. http://code.google.com/appengine/docs/java/gettingstarted/usingjsps.html

But even if you arent using the Google AppEngine UserService you can always replace the UserService class with a helper class of your own that can authenticate application users.

Here is one

Simple GWT Spring Webapp

If you ask the question of "How do I implement a login page for my GWT application?", everyone just redirects you to this semi-complete article: "LoginSecurity FAQ", which only gives you half the solution. It talks about jBCrypt and the need to communicate sessionID's with every RPC call between the client and the server. However, it does not shed any light on many crucial aspects of the solution:

1) According to the author, checkWithServerIfSessionIdIsStillLegal() method is intended to either display a loginbox if sessionID is no longer legal or allow you access to the main application otherwise. But where do you place this method? Where is "right after your !EntryPoint begins execution"? Is it in a separate GWT application? Is it a different entry point in the same GWT application? Where do you physically call this method from?

2) Immediately relevant to 1 is: where does the loginbox live in this architecture? Again, is it in the same GWT application as the main part you're restricting access to? If so, is it specified as a separate entry point? Or is the LoginBox just a separate GWT Application that is responsible to redirect guests to the main application only if its checkWithServerIfSessionIdIsStillLegal() method returns true?

There are no examples or explanations available, which is quite frustrating.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top