来自Azure托管的.Net Web应用程序的ClientContext [英] ClientContext From Azure hosted .Net Web Application

查看:62
本文介绍了来自Azure托管的.Net Web应用程序的ClientContext的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure托管的.Net Web应用程序.我正在尝试使用Windows身份验证从我的.Net Web应用程序创建到本地SharePoint 2013网站的ClientContext.但这是失败的.最好的方法是什么?我需要使用TokenHelper吗 类还是ACS?

I have an Azure hosted .Net Web Application. I am trying to create the ClientContext to an On-Premise SharePoint 2013 site from my .Net Web Application using windows authentication. But it's failing. What is the best way to do it? Do I need to use TokenHelper class or ACS?

推荐答案

您好,

您的SharePoint应用程序是否启用了Internet访问?

如果没有,我认为您需要将Azure Web应用程序转换为SharePoint低信任度提供程序主机加载项. /span>

If you haven’t, I think you need convert your azure web application to SharePoint low trust provider host add-in.

您可以尝试以下解决方案在本地启用低信任度身份验证模型.

https://github.com/SharePoint/PnP-Tools/tree/master/Scripts/SharePoint.LowTrustACS.Configuration

如果您要手动配置,请参考以下链接.


这篇关于来自Azure托管的.Net Web应用程序的ClientContext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆