C# 具有Hightrust加载项的SharePoint access,SharePoint托管的自定义WCF服务,当前用户为空
我正在使用Azure托管的WebSerie,它使用ADFS进行身份验证,并创建用户访问承载令牌,以便通过提供商托管的加载项与内部SharePoint进行通信 我可以通过标准的SharePoint REST API调用访问SharePoint数据。但是,当我尝试调用托管在同一SharePoint中的自定义WCF服务时,我没有经过身份验证,因此我在httpcontext、spcontext、operationcontext、thread.principal或ServiceSecurityContext中都没有当前用户、声明或标识 因此,我无法使用自定义SharePoint托管的WCF服务访问SharePoint中的数据 如何以与SharePoint REST API相同的方式强制使用承载访问令牌进行身份验证C# 具有Hightrust加载项的SharePoint access,SharePoint托管的自定义WCF服务,当前用户为空,c#,wcf,sharepoint,bearer-token,spcontext,C#,Wcf,Sharepoint,Bearer Token,Spcontext,我正在使用Azure托管的WebSerie,它使用ADFS进行身份验证,并创建用户访问承载令牌,以便通过提供商托管的加载项与内部SharePoint进行通信 我可以通过标准的SharePoint REST API调用访问SharePoint数据。但是,当我尝试调用托管在同一SharePoint中的自定义WCF服务时,我没有经过身份验证,因此我在httpcontext、spcontext、operationcontext、thread.principal或ServiceSecurityContex