【问题标题】:Monotouch claims-based authentication for connecting to SharePoint/Office 365Monotouch 基于声明的身份验证,用于连接到 SharePoint/Office 365
【发布时间】:2013-04-28 15:41:43
【问题描述】:

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

【问题讨论】:

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


    【解决方案1】:

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

    这里是如何使用它:

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

    然后你可以在你的 web 服务调用中注入 cookie。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-24
      • 2015-03-14
      • 2011-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-20
      相关资源
      最近更新 更多