用于连接到SharePoint / Office 365的Monotouch基于声明的身份验证

时间:2013-04-28 15:41:43

标签: sharepoint xamarin.ios claims-based-identity office365

开发人员,有没有人有针对Office 365(基于claimes)进行身份验证的示例代码? 我需要从我使用Monotouch / Monotouch.Dialog构建的iPad应用程序访问SharePoint列表。 在此先感谢您的帮助。 佛瑞德

1 个答案:

答案 0 :(得分:0)

如果是Office 365升级后(= 2013),则需要使用SharePointOnlineCredentials。我从未试图将它与MonoTouch一起使用,但它几乎没有依赖..

以下是如何使用它:

var creds = new SharePointOnlineCredentials(UserName, pass);
var cookie = creds.GetAuthenticationCookie(uri);

然后你可以在你的webservices调用中注入cookie。