如何在GWT应用程序中实现登录页面? [英] How to implement a login page in a GWT app?

查看:117
本文介绍了如何在GWT应用程序中实现登录页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Web应用程序在允许任何访问之前需要对用户进行身份验证。我试图实现的场景是一个带有用户名和密码字段的登录页面。一旦用户点击发送按钮,当RPC调用验证凭证时,应该显示像Verifing ...这样的标志。如果成功,请加载主应用程序屏幕。



实现该功能的最佳方式是什么? 您是否看过本页



它描述了如何执行以下操作:




  • 创建一个基于用户/密码认证的
    的'login'页面。

  • 一个安全的时尚
    在您的服务器上。
  • 允许用户'保持登录'为
    ,只要你想,所以他们不
    有每次输入他们的用户名和
    密码。
  • 使大多数
    现代浏览器的'自动完成'功能与您的GWT的
    登录页面一起工作。讨论如何使用HTTPS或花式
    散列算法添加更多
    安全性。


My WebApp needs to authenticate user before allowing any sort of access. The scenario I'm trying to implement is a login page with username and password fields. Once user hits "send" button, a sign like "Verifing..." should be shown up while an RPC call verifies credentials. In case of success, load the main app screen.

What is the best way to implement that?

解决方案

Have you looked at this page ?

It describes how to do the following:

  • Create a 'login' page that is based on user/password authentication.
  • Store this data in a secure fashion on your server.
  • Allow users to 'remain logged in' for as long as you want so they don't have to enter their user name and password every time.
  • Make 'auto-complete' features of most modern browsers work with your GWT's login page. Discussion on adding more security with either HTTPS or fancy hashing algorithm.

这篇关于如何在GWT应用程序中实现登录页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆