Window 8 consuming SharePoint REST Interface through FormsAuthentication?
I have created a sample Windows 8 Application getting SharePoint 2010 list data using REST Apis like _vti_bin/ListData.svc I am using NetworkCredential to access the list its working fine. How can I achieve the same results using FormsAuthentication? Code for NetworkCredential: context = new CentralAdministrationDataContext(new Uri("http://<SharePoint_URL>/_vti_bin/ListData.svc")); NetworkCredential credentials = new NetworkCredential(); context.UseDefaultCredentials = false; context.Credentials = new NetworkCredential("UserName", "Password"); 来源: https://stackoverflow.com/questions/14645268