WIF 3.5 & 4.5 in delegation scenario

Michael Maier
1 min readNov 13, 2017

--

Windows Identity Foundation is a set of .NET Framework classes for implementing claims-based identity in your applications. However when updating to WIF 4.5 the old code for WIF 3.5 will not work. Microsoft has done changes in the classes and while the old WIF was in Microsoft.IdentityModel namespace the new libraries are located in System.IdentityModel. Importing them both will cause problems due conflicting names so just select which one you want to use. The namespace mapping can be found from
https://msdn.microsoft.com/en-us/library/jj157091(v=vs.110).aspx.

Delegation scenario

I needed to call a WS-Federation/WS-Trust enabled web service service programmatically using WIF 4.5 libraries. Having the old WIF 3.5 code helped a lot but there were some changes required. This example might not work in your scenario and the different settings required for the bindings and RequestSecureToken might differ.

WIF 3.5 Example

WIF 4.5 Example

--

--

No responses yet