远程身份验证到Sharepoint Online网站 [英] Remote authentication to Sharepoint Online site

查看:93
本文介绍了远程身份验证到Sharepoint Online网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我们有一个独立的网站,需要访问我们的Online Sharepoint网站.具体来说,我们将搜索网站上存储的pdf文档,并希望它返回指向它的链接.

We have a stand alone website that will need to access our Online Sharepoint website. Specificly we will be searching for a pdf document stored on the site and want it to return a link to it. 

要实现此目标,我们首先需要通过Sharepoint进行身份验证.第一步是通过在请求的正文中发送SAML.xml来获取SecurityToken,该SAML.xml具有嵌入在SAML中的用户名,密码和终结点.当我发帖时 该请求应该返回一个包含SecurityToken的响应,但是我却收到了"Invalid Request"的错误消息.值0x80048820和内部错误0x80045c01,文字为无效的STS请求.". 想知道是否有人可以帮助我解决这个问题.

To achieve this goal we first need to authenticate with Sharepoint.  The first step is the obtain a SecurityToken by sending in the body of a request a SAML.xml that has the username, password and endpoint embedded in the SAML.  When I post the request it should be returning a response that contains the SecurityToken,but instead I'm getting and error of "Invalid Request" value of 0x80048820 and internalerror 0x80045c01 with Text of "Invalid STS request.
".  Wondering if someone could help me with this issue.

谢谢

Greg

推荐答案

Greg,

请检查以下步骤:

1.将SAML请求发送到STS

1.Send SAML Request to STS

2.接收SAML响应

2.Receive SAML Response

3.将安全令牌发送到SharePoint Online

3.Send the Security Token to SharePoint Online

4.接收身份验证cookie

4.Receive the authentication cookies

5.发送包含身份验证Cookie的请求

5.Send requests including authentication cookies

以下文章供您参考:

SharePoint 2013 REST API和远程身份验证

https://www.slideshare.net/AdilAnsari6/sharepoint-2013 -rest-api-remote-authentication-50591735

SharePoint Online远程身份验证

http://paulryan.com.au/2014/spo-remote-authentication-rest/

如果您的网站是asp.net网站,我们也可以使用.NET客户端对象模型来实现它,并使用 SharePointOnlineCredentials类以传递凭据.

If your website is an asp.net web site, we can also use .NET Client Object Model to achieve it, and use the SharePointOnlineCredentials class to pass the credentials.

SharePoint Online:在Office 365中对.NET客户端对象模型进行身份验证

SharePoint Online: Authenticating .NET Client Object Model in Office 365

http://www.vrdmn.com/2013/01/authenticating -net-client-object-model.html

最好的问候,

Dennis


这篇关于远程身份验证到Sharepoint Online网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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