Office.auth.getAccessToken() 在 Outlook Web 中不起作用。错误13006

问题描述 投票:0回答:1

Office.auth.getAccessToken({ allowSignInPrompt: true, allowConsentPrompt: true, forMSGraphAccess: true }).then(console.log);
的调用失败并出现以下响应。

{
    "name": "Error occurred in the authentication request from Office.",
    "message": "An unexpected error occurred in the client.",
    "code": 13006
}

我不确定我做错了什么。我很确定这曾经对我有用。 在我的清单中是否有以下配置。我已重新同意以管理员身份使用该应用程序。

<WebApplicationInfo>
<Id>myappId</Id>
<Resource>api://localhost:3000/myappId</Resource>
<Scopes>
    <Scope>User.Read.All</Scope>
    <Scope>User.Read</Scope>
    <Scope>profile</Scope>
    <Scope>openid</Scope>
</Scopes>
</WebApplicationInfo>
outlook office-js outlook-addin access-token office-addins
1个回答
0
投票

这似乎是 Mozilla Firefox 中的一个问题,至少在我测试过的 120.0 64 位版本中是这样。

我在 Google Chrome 版本 119.0.6045.199(官方版本)(64 位)中没有任何问题。

我建议的解决方案是使用其他浏览器或等到 Microsoft 修复其库以在所有浏览器中运行。

© www.soinside.com 2019 - 2024. All rights reserved.