基于Sharepoint CLAIMS的身份验证不起作用 [英] Sharepoint CLAIMS based authentication not working

查看:84
本文介绍了基于Sharepoint CLAIMS的身份验证不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是b $ b我是SharePoint新手,我需要开发一个能够创建SharePoint列表项的移动应用程序。我们计划将App创建为本机ios应用。我们计划在移动APP中进行基于CLAIMS的身份验证。 

第一步,我打电话给"https://login.microsoftonline.com/extSTS.srf"并收到"wsse:BinarySecurityToken"
$
使用此令牌我拨打了"https://xxxxx.sharepoint.com/_forms/default.aspx?wa = wsignin1.0"的电话。并收到了$
"FedAuth"和"rtfa"。我打电话给"https://digitalmeshsoftechind.sharepoint.com/_api/contextinfo"使用此Cookie,但我收到错误 "访问被拒绝。您无权执行此操作或
访问此资源"。请有人帮我继续。



谢谢,

解决方案

嗨Arun,


在调用
https://digitalmeshsoftechind.sharepoint.com/_api/contextinfo


根据我的研究,我们需要创建一个虚拟帖子请求来获取X-RequestDigest的值,然后在后续请求的标题中使用此值来获取来自SharePoint的结果。



请查看以下链接了解更多详情:


http://www.whypad.com/posts/authenticate-sharepoint-rest-call-in-a-rest-client/1169/



最诚挚的问候,


维多利亚

Hi,
I am new to SharePoint and, I need to develop a mobile application, that able to create SharePoint list item. We are planning to create App as native ios app. And we are planning to do CLAIMS based authentication in mobile APP. 
In the first step I made a call to "https://login.microsoftonline.com/extSTS.srf" and received "wsse:BinarySecurityToken"
Using this token I made a call to "https://xxxxx.sharepoint.com/_forms/default.aspx?wa=wsignin1.0" and received
"FedAuth" and "rtfa". And I called "https://digitalmeshsoftechind.sharepoint.com/_api/contextinfo" using this cookies, but I am receiving an error  "Access denied. You do not have permission to perform this action or access this resource". Please anybody can help me to go ahead.

Thanks,

解决方案

Hi Arun,

How did you set the headers when calling the https://digitalmeshsoftechind.sharepoint.com/_api/contextinfo?

And per my research, we need to make a dummy post request to get the value of the X-RequestDigest and then use this value in the headers of the sub-sequent request to get the results from SharePoint.

Please check the link below for more details:

http://www.whypad.com/posts/authenticate-sharepoint-rest-call-in-a-rest-client/1169/

Best Regards,

Victoria


这篇关于基于Sharepoint CLAIMS的身份验证不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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