简体   繁体   English

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

[英]Configure a WCF RIA Service with a Secure Endpoint in web.config

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: 使用安全二进制终结点(SSL)配置WCF Ria服务的标准方法是在EnableClientAccessAttribute上设置RequiresSecureEndpoint = true,如下所示:

[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.config文件中设置RequiresSecureEndpoint = true选项,或者是否存在将WCF RIA服务限制为仅安全端点(SSL)的等效方法。

According to MSFT it is not possible to do this from the web.config, see MSDN WCF Forum thread . 根据MSFT,不可能从web.config中执行此操作,请参阅MSDN WCF论坛线程

If interested in having this feature being added to WCF RIA Services, vote-up this suggestion on the WCF RIA Services Forum . 如果有兴趣将此功能添加到WCF RIA服务中,请在WCF RIA服务论坛上对该建议投赞成票。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM