rest - 尝试使用 REST API 对 SharePoint 访问进行身份验证时 STS 请求无效
问题描述
我正在尝试按照以下链接中的说明进行操作,但在第 1 步失败。来自https://login.microsoftonline.com/extSTS.srf的响应是“无效请求”。我将 XML 直接复制到 Postman 中,更新用户名/密码,然后发布到该 url,但它不喜欢它。我还需要设置其他东西吗?并且确认一下,如果我只是搞砸了用户名/密码,它不会给出这种错误,对吧?
https://allthatjs.com/2012/03/28/remote-authentication-in-sharepoint-online/
错误响应:
<?xml version="1.0" encoding="utf-8"?>
<S:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust" xmlns:S="http://www.w3.org/2003/05/soap-envelope">
<S:Header>
<psf:pp xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault">
<psf:serverVersion>1</psf:serverVersion>
<psf:authstate>0x80048800</psf:authstate>
<psf:reqstatus>0x80045c01</psf:reqstatus>
<psf:serverInfo ServerTime="2020-05-27T18:00:52.0727053Z">PROD-CHI-012.ProdSlices rid:83065b9d-8e7e-40a7-a3df-842141279c00</psf:serverInfo>
</psf:pp>
</S:Header>
<S:Body xmlns:S="http://www.w3.org/2003/05/soap-envelope">
<S:Fault>
<S:Code>
<S:Value>S:Sender</S:Value>
<S:Subcode>
<S:Value>wst:InvalidRequest</S:Value>
</S:Subcode>
</S:Code>
<S:Reason>
<S:Text xml:lang="en-US">Invalid Request</S:Text>
</S:Reason>
<S:Detail>
<psf:error xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault">
<psf:value>0x80045C01</psf:value>
<psf:internalerror>
<psf:code>0x80045C01</psf:code>
<psf:text>AADSTS90023: Invalid STS request.</psf:text>
</psf:internalerror>
</psf:error>
</S:Detail>
</S:Fault>
</S:Body>
</S:Envelope>
解决方案
推荐阅读
- python - Pygame Display Update Glitch?
- c++ - Confusing operation in c++ program while understanding move semantics
- node.js - 带有 Selenium-webdriver 的 NodeJS:正确单击坐标 (x,y)
- java - Eclipse/NetBeans and Maven integeration
- file - repl.it 你如何上传目录
- go - 如何从共享的 play.golang.org url 中检索 golang 代码
- java - Convert String to JavaRDD
- ionic-framework - ionic 1 在特定屏幕中集成特定的谷歌分析
- ruby-on-rails - undefined method `sub_categories' for nil:NilClass
- python - Looking for minimum between a range of index in a dictionary python