我正在尝试运行this MSDN sample,它可以对抗Office 365网站。
但是,当我在办公室中针对SharePoint 2013云实施运行它时,我收到了身份验证失败错误,这实际上是错误消息:
<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:FailedAuthentication</S:Value>
</S:Subcode>
</S:Code>
- <S:Reason>
<S:Text xml:lang="en-US">Authentication Failure</S:Text>
</S:Reason>
- <S:Detail>
- <psf:error xmlns:psf="http://schemas.microsoft.com/Passport/SoapServices/SOAPFault">
<psf:value>0x80048821</psf:value>
- <psf:internalerror>
<psf:code>0x80047860</psf:code>
<psf:text>Direct login to WLID is not allowed for this federated namespace</psf:text>
</psf:internalerror>
</psf:error>
</S:Detail>
</S:Fault>
</S:Body>
知道IT部门是否有某些设置阻止我,或者我需要在我的应用中进行一些更改?
谢谢!
答案 0 :(得分:0)
这是一个旧的实现,请确保您将应用程序重新连接到o365并刷新所有令牌以获取win8应用程序中配置文件中的最新密钥。另外,请务必在o365 AD租户中注册该应用程序。
希望这有帮助。