在 web.config 中使用安全端点配置 WCF RIA 服务

发布于 2024-12-13 06:34:54 字数 444 浏览 3 评论 0原文

使用安全二进制端点 (SSL) 配置 WCF Ria 服务的标准方法是在 EnableClientAccessAttribute 上设置 RequiresSecureEndpoint = true ,如下所示:

[RequiresAuthentication]
[EnableClientAccess(RequiresSecureEndpoint = true)]
public class Module1DomainService : LinqToEntitiesDomainService<AdventureWorksDataModel>
{
      .
      .
      .
}

我需要知道是否可以在 web.config 文件中设置 RequiresSecureEndpoint = true 选项,或者是否有等效方法将 WCF RIA 服务限制为仅安全端点 (SSL)。

The standard method to configure a WCF Ria Service with a secure binary endpoint (SSL) is to set RequiresSecureEndpoint = true on the EnableClientAccessAttribute as shown below:

[RequiresAuthentication]
[EnableClientAccess(RequiresSecureEndpoint = true)]
public class Module1DomainService : LinqToEntitiesDomainService<AdventureWorksDataModel>
{
      .
      .
      .
}

I need to know if the RequiresSecureEndpoint = true option can be set in the web.config file or if there's an equivalent method to restrict a WCF RIA Service to only a secure endpoint (SSL).

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

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

发布评论

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

评论(1

末骤雨初歇 2024-12-20 06:34:54

根据 MSFT 的说法,不可能从 web.config 执行此操作,请参阅 MSDN WCF 论坛帖子

如果有兴趣将此功能添加到 WCF RIA 服务中,请投票 建议 关于 WCF RIA 服务论坛

According to MSFT it is not possible to do this from the web.config, see MSDN WCF Forum thread.

If interested in having this feature being added to WCF RIA Services, vote-up this suggestion on the WCF RIA Services Forum.

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