简体   繁体   中英

Registration and Login form with GWT

有没有关于使用Google Web Toolkit创建注册表单和密码登录屏幕的好教程?

查看google-web-toolkit-incubator的登录常见问题解答 ,其中介绍了如何以安全的方式创建登录页面和存储数据。

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.

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.

Here is one

Simple GWT Spring Webapp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM