简体   繁体   English

如何使ACS支持的WCF服务通过WATM端点工作

[英]How to make WCF service backed by ACS to work through WATM endpoint

I have two deployments (webroles) of the same WCF service hosted as Azure Cloud services: http://myservice1.cloudapp.net , http://myservice2.cloudapp.net . 我主持的Azure的云服务同WCF服务的两个部署(webroles): http://myservice1.cloudapp.nethttp://myservice2.cloudapp.net Each of those is configured to use ACS authentication. 每个配置为使用ACS身份验证。 I've configured WATM (Traffic Manager) to load-balance between those two webroles. 我已经将WATM(流量管理器)配置为在这两个Webrol之间进行负载平衡。 When calling each of those services directly, everything works just fine. 当直接调用每个服务时,一切正常。 However, when the client calls through the WATM endpoint, it gets the following error message: 但是,当客户端通过WATM端点调用时,它会收到以下错误消息:

ID3242: The security token could not be authenticated or authorized. ID3242:无法对安全令牌进行身份验证或授权。

The ACS namespace has all three URLs configured as realms. ACS名称空间将所有三个URL配置为领域。

Thanks in advance. 提前致谢。

It turned out that the only bit missing was to add the WATM URL in the Allowed AudienceUris list. 事实证明,唯一缺少的是在“允许的AudienceUris”列表中添加WATM URL。 Note, the list should actually contain all the endpoints the service will be accessible through, including the one it's exposed under. 请注意,列表实际上应该包含服务可以访问的所有端点,包括它所暴露的端点。 Details on how to add AudienceUris can be found here: https://msdn.microsoft.com/en-us/magazine/ee335707.aspx 有关如何添加AudienceUris的详细信息,请访问: https//msdn.microsoft.com/en-us/magazine/ee335707.aspx

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

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