在 web.config 中使用安全端点配置 WCF RIA 服务
使用安全二进制端点 (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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 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.