[英]Invalid STS Request when Trying to Authenticate for SharePoint Access with REST API
我正在嘗試按照以下鏈接中的說明進行操作,但在第 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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.