如何登录 Exchange Web 服务

发布于 2024-10-05 17:06:23 字数 418 浏览 0 评论 0原文

我需要从网络应用程序为交换用户添加日历事件。

网络应用程序知道交换用户的电子邮件地址。 未与 Active Directory 集成的 Web 应用程序。 理想情况下,用户不需要在 Outlook 中接受事件

我们讨论了一些可能性:

  1. 将用户交换密码存储在 Web 应用程序数据库中(折扣)

  2. 为网络应用程序设置一个虚拟交换用户,并将日历事件作为虚拟用户的请求发送给真实用户(这并不理想,因为真实用户需要接受,并且客户端没有具体的规范)为

  3. 与 Active Directory 集成,并模拟用户(需要 Windows 身份验证或用户密码,并且使用该应用程序添加约会的人不会是需要进入其日历的人,因此 Windows 身份验证无济于事。)

那么这可能吗?

I need to add a calendar event for an exchange user from a web app.

The web app knows the exchange users email address.
The web application that is not integrated with Active Directory.
Ideally user should not need to accept the event in outlook

We discussed a few posibilities:

  1. Store the users exchange passwords in the web app DB (discounted)

  2. Set up an dummy exchange user for the web app, and send the caledar event to the real user as a request from the dummy user (not ideal as the real user would need to accept, and client does not have specs for what to do in case of rejection)

  3. Integrate with Active Directory, and impersonate the user (requires either windows authentication, or the users password, and the person using the app to add the appointment will not be the person whose calendar it needs to go into, so windows authentication wouldn't help.)

So is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风疏影 2024-10-12 17:06:34

是的,你可以这样做。

Exchange Web 服务操作使您能够模拟另一个用户,因此您的应用程序将使用自己的名称/密码向 EWS 进行身份验证,然后在“添加日历事件”操作上设置正确的模拟参数,指定它代表的用户的。

显然,您的应用程序使用的帐户需要授予Exchange 中的适当权限,以允许其模拟任何用户。

Yes, you can do this.

Exchange Web Services operations provide you the ability to impersonate another user, so your application would authenticate to EWS using its own name/pw, then set the proper impersonation parameters on the "add calendar event" operation, specifying the user that it's acting on behalf of.

Obviously, the account your application is using would need to be granted the appropriate permissions in Exchange to allow it to impersonate any user.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文