我希望我的Domino Servlet获得经过身份验证的用户会话 [英] I want my Domino Servlet to get an authenticated user session

查看:62
本文介绍了我希望我的Domino Servlet获得经过身份验证的用户会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Domino上运行的Servlet中,这似乎是一个非常基本的问题,我想访问使用IBM Notes和Domino的非常好的安全性明智地保护的Domino资源.

It seems a like a pretty fundamental question, in a running Servlet hosted on Domino I want to access Domino resources that I have wisely protected using the the very fine security of IBM Notes and Domino.

我希望Servlet能够读取和写入Domino数据,同时保留来自调用Servlet(或xAgent)的客户端的数据,并阻止客户端直接写入数据.

I want the Servlet to be able to read and write data to Domino whilst keeping that data from the client that called the Servlet (or xAgent) and preventing the client from writing directly.

我很高兴能够获得代表该应用程序签名者的会话.我可以使用?open& amp;登录并登录Servlet来为注册用户建立会话.这不切实际.

I'd be happy to be able to get a session that represented the signer of the application. I can get a session for a registered user by calling the Servlet using ?open&login and signing in. That's not practical.

我在这里查看过: https://stackoverflow.com/users/1177870/mark-leusink )意味着可以使用ExtLib的getCurrentSessionAsSigner().我已经尝试过,已经用单个用户ID签名了整个应用程序,并且它不返回会话.答案似乎在于Servlet无法获取FacesContext对象.

I've looked here: How can you use SessionAsSigner in a Java Bean called from an XPage? where Mark Leusink (https://stackoverflow.com/users/1177870/mark-leusink) implies the use of ExtLib's getCurrentSessionAsSigner() could be used. I've tried it, having signed the whole application with a single user id and it doesn't return a session. The answer seems to lie in the Servlet's inability to get a FacesContext object.

这感觉答案应该很明显,但对我而言却不是.有什么想法吗?

This feels like the answer should be obvious but it isn't to me. Any ideas?

推荐答案

在OpenNTF上检查WebDav项目的源.它具有您需要的所有代码

Check the source of the WebDav project on OpenNTF. It has all the code you need

这篇关于我希望我的Domino Servlet获得经过身份验证的用户会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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