Negotiating SAML tokens for REST clients with the HttpClient class
Posted by: Pablo M. Cibraro (aka Cibrax),
on 18 Mar 2009 |
View original | Bookmarked: 0 time(s)
Continuing my post Brokered authentication for REST active clients, I will show today how the client code can be simplified using the new HttpClient (WCF REST Starter kit 2) and some custom http processing stages attached to its pipeline.
The first thing we have to do is to implement a custom processing stage (a class that derives from HttpStage) to centralize all the logic needed to negotiate a SAML token from an existing STS.
The pipeline contains basically two kinds of stage, a regular http stage...