简体   繁体   English

注册和登录表格与GWT

[英]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. 如果你正在使用AppEngine,这可能是最好的教程。 http://code.google.com/appengine/docs/java/gettingstarted/usingjsps.html 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. 但即使您没有使用Google AppEngine UserService,也始终可以使用您自己的帮助程序类替换UserService类,以便对应用程序用户进行身份验证。

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. 如果你问“我如何为我的GWT应用程序实现登录页面?”的问题,每个人都只是重定向到这篇半完整的文章:“ LoginSecurity FAQ ”,它只给你一半的解决方案。 It talks about jBCrypt and the need to communicate sessionID's with every RPC call between the client and the server. 它讨论了jBCrypt以及将sessionID与客户端和服务器之间的每个RPC调用进行通信的需求。 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. 1)根据作者的说法,checkWithServerIfSessionIdIsStillLegal()方法用于在sessionID不再合法时显示登录框,否则允许您访问主应用程序。 But where do you place this method? 但是你在哪里放置这种方法? Where is "right after your !EntryPoint begins execution"? 哪个“就在你的!EntryPoint开始执行”之后? Is it in a separate GWT application? 它是在一个单独的GWT应用程序中吗? Is it a different entry point in the same GWT application? 它是同一GWT应用程序中的不同入口点吗? Where do you physically call this method from? 你从哪里称呼这种方法?

2) Immediately relevant to 1 is: where does the loginbox live in this architecture? 2)与1立即相关的是:loginbox在这个架构中的位置是什么? Again, is it in the same GWT application as the main part you're restricting access to? 同样,它是否与您限制访问的主要部分在同一GWT应用程序中? 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? 或者,LoginBox只是一个单独的GWT应用程序,只有当checkWithServerIfSessionIdIsStillLegal()方法返回true时才负责将guest虚拟机重定向到主应用程序?

There are no examples or explanations available, which is quite frustrating. 没有可用的示例或解释,这非常令人沮丧。

Here is one 这是一个

Simple GWT Spring Webapp 简单的GWT Spring Webapp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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