I am trying to use the OData type provider with a Sharepoint site that is protected by forms authentication. Connecting with a browser presents the browser embedded "auth form" to authenticate.
Using the type provider I am unable to connect to it, and I can't find a way to provide credentials:
I have seen that you can provide credentials after this step, like this:
let db = service.GetDataContext() in
db.Credentials <-
(NetworkCredential("user_name", "password", "domain") :> ICredentials)
But I can't even get to that point, both at design time and at runtime the code throws the 401 error as seen in the screenshot.
So, how am I supposed to connect to an OData service that is behind forms auth?
Thanks.
