title: Consuming Sharepoint web services with ADFS claims-based authentication
body: <p>We've recently switched one of our Sharepoint instance to use ADFS claims authentication instead of windows authentication. And now I can't seem to get the Copy service to work correctly from the server.</p>
  
  <p>I've tried many methods, but none worked. Including the one found <a href="http://www.tonytestasworld.com/post/2009/06/04/How-To-Authenticate-and-Use-SharePoint-Web-Services-in-an-FBA-SharePoint-site.aspx" rel="nofollow">here</a> suggested by another answer here on SO. In this case I get a 400 bad request when I call the login method.</p>
  
  <p>I don't necessarely need to impersonate the user, but that would be great.
  Any idea how I should do this?</p>
  
  <p>Things that I have on the server to help authenticate:</p>
  
  <ul>
  <li>IClaimsIdentity containing all the claims issued by ADFS</li>
  <li>Bootstrap token (I tried to authenticate using it but no luck so far)</li>
  <li>credentials for the system account (that I used when trying to authenticate with Sharepoint's authentication service)</li>
  </ul>