What's the .NET 4.5 equivalent to UserNameWSTrustBinding?
.net-4.5, wif
Solution
Although this is an old question, I couldn't find any non-third-party answer on the internet, so here it is:
To replace `UserNameWSTrustBinding` in .NET 4.5, use the following:
var binding = new WS2007HttpBinding(SecurityMode.{what it was before});
binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;
Problem
I am converting a active profile STS to the new .NET 4.5 System.IdentityModel framework. My code using the UserNameWSTrustBinding which doesn't seem to exist in the new framework. Any suggestions.