我正在将活动配置文件 STS 转换为新的 .NET 4.5 System.IdentityModel 框架。我的代码使用了新框架中似乎不存在的 UserNameWSTrustBinding。有什么建议么。
问问题
4123 次
3 回答
4
虽然这是一个老问题,但我在互联网上找不到任何非第三方的答案,所以这里是:
要在 .NET 4.5 中替换UserNameWSTrustBinding
,请使用以下命令:
var binding = new WS2007HttpBinding(SecurityMode.{what it was before});
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
于 2016-06-27T11:51:13.660 回答
1
我将 WCF 绑定移植到 thinktecture 身份模型:
https://github.com/thinktecture/Thinktecture.IdentityModel.45
于 2013-01-24T22:43:16.517 回答
0
我也很难为 .NET 4.5 找到不是第三方库的东西。但是我遇到了这个链接,你可以在你的项目中包含代码。
于 2016-08-09T18:20:32.380 回答