在客户端/服务器环境中为Sharepoint Online验证用户

时间:2017-06-12 08:33:50

标签: asp.net authentication sharepoint client-server sharepoint-online

目前,我正在开发一个网站(供内部使用),需要从我公司的SharePoint页面中检索某些数据。 以下是使用的代码:

    Using ctx As ClientContext = ClaimClientContext.GetAuthenticatedContext("https://abc.sharepoint.com")

        If ctx IsNot Nothing Then

            web = ctx.Web
            ctx.Load(ctx.Web)
            ctx.ExecuteQuery()

        End If
    End Using


目前,我可以使用 ClaimsClientContext 对用户进行身份验证 在我的 localhost 中进行测试。但是,在我发布网站并部署到我的服务器后,它不起作用。有人能指出我如何在客户端/服务器环境中验证用户的正确方向吗?

0 个答案:

没有答案
相关问题