LightSwitch Deskop和Cookies [英] LightSwitch Deskop and Cookies

查看:100
本文介绍了LightSwitch Deskop和Cookies的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

桌面上运行的lightswitch是否会向WCF调用发送cookie?我打算从lightswitch调用WCF服务,我需要服务端的身份验证cookie,以便为不同的操作进行用户授权。

Does lightswitch running on the desktop send cookies to WCF calls? I intend to call a WCF service from lightswitch, and I need the authentication cookie on the service side in order to do user authorization for different operations.

推荐答案

如果您在LightSwitch应用程序中启用身份验证(在项目的"访问控制"选项卡中选择Windows或Forms身份验证无论您是作为桌面还是Web应用程序运行,LightSwitch都会向其服务器发送cookie。

If you enable authentication in your LightSwitch app (select either Windows or Forms authentication in the Access Control tab in the Project Properties), then LightSwitch will send cookies to its server no matter if you are running as a Desktop or Web application.

您需要拨打哪些不同的操作?  LightSwitch身份验证cookie仅可用于调用LightSwitch服务器。 如果您在其他服务器上调用WCF服务,那么该cookie对您没用。

What different operation do you need to call?  The LightSwitch authentication cookie is only usable calling into the LightSwitch server.  If you are calling a WCF Service on a different server, then that cookie isn't useful to you.


这篇关于LightSwitch Deskop和Cookies的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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