Window 8通过FormsAuthentication消耗SharePoint REST接口?

我创建了一个示例Windows 8应用程序,使用REST Apis获取SharePoint 2010列表数据,如_vti_bin / ListData.svc我使用NetworkCredential访问列表,其工作正常。 如何使用FormsAuthentication实现相同的结果? NetworkCredential代码:

context = new CentralAdministrationDataContext(new Uri("http:///_vti_bin/ListData.svc")); NetworkCredential credentials = new NetworkCredential(); context.UseDefaultCredentials = false; context.Credentials = new NetworkCredential("UserName", "Password");