title: F# OData Type Provider Unauthorized (401)
body: <p>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.</p>
  
  <p>Using the type provider I am unable to connect to it, and I can't find a way to provide credentials:</p>
  
  <p><a href="https://i.stack.imgur.com/SOrss.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SOrss.png" alt="enter image description here"></a></p>
  
  <p>I have seen that you can provide credentials after this step, like this:</p>
  
  <pre><code>let db = service.GetDataContext() in
      db.Credentials &lt;-
          (NetworkCredential("user_name", "password", "domain") :&gt; ICredentials)
  </code></pre>
  
  <p>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.</p>
  
  <p>So, how am I supposed to connect to an OData service that is behind forms auth?</p>
  
  <p>Thanks.</p>