Forms Authentication Support

Sep 23, 2010 at 10:13 PM

Is there a way to use the OData Client if you use forms-based authentication to login to the service?  Does anyone know how to mod the proxy class to support this?  Many Thanks, Michael

Oct 13, 2010 at 9:51 PM

You can use the ObjectConext::OnBeforeSend callback to setup the appropriate headers on the HTTP request.

Hope this helps

Claudio

 

Feb 20, 2011 at 9:43 PM

Do you have any examples of what the headers would be and how I would set them?

Feb 21, 2011 at 9:26 PM

The headers are specific to the service you are trying to access. The best way to find out what you need in the headers and content of the request is to use an http sniffer while logging on to the service using your browser. Search for "http sniffer" in Bing. There are several tools available out there, some of them free, either for the PC or the Mac.