English 中文(简体)
GWT 认证用户会议
原标题:GWT authenticated user session

我的网络应用包括两部分:

  1. GWT app that does all the work.
  2. Handmade servlet aimed to handle OpenID authentication facility.

我需要电话2至1。 http://code.google.com/p/google-web-toolkit-incubator/wiki/Login SecurityFAQ”rel=“nofollow”Login SecurityFAQ,因此,我谨确认我的理解是否正确。

  1. Once OpenID provider confirms that user is OK and gives me its identity, I should register the session.
  2. To "register" the session, I should store somewhere in my DB a mapping between OpenID identity and a session id (identity="https://www.google.com/accounts/o8/id?id=wwyruiwncuyrwieruyfakefakefake" and session id is a large random string like "HiuhoiuhIUHOIUY87Y*&Ttgi6yUYGIuygUHGugyg^G6g").
  3. That session id should be stored on client side in a cookie.
  4. Every time any request is sent from client side, on server side I should check whether client s session id is still fresh enough (alive) and I should also use it to resolve client s identity in case I need it.

是否正确? 在案件审理中,是否有足够的保障?

最佳回答

你的想法是正确的,我也这样说。

仅举几句:

(1) 如果你想要坚持身份,不要忘记确定真实的权利。 视开放式登记系统提供人而定,如果对同一用户的下一个标识可能有不同的特性。 我认为,谷歌开放国际要求你使用你的服务器名称加港口:

openIdManager.setRealm("http://" + req.getServerName() + ":" + req.getServerPort());

2) 为什么要建立自己的会议管理? 这是很多额外的工作,你最终可能起草一些不可靠的文件。 使用共同的http://servlet会议。

3) You won t need to manage session timeouts if you use http sessions, but if you need to intercept all GWT RPC calls, the right place might be overriding service method in your RemoteServiceServlet implementation.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签