无法在 ReportPhishingCommandSurface 中使用 OfficeRuntime.auth.getAccessToken

问题描述 投票:0回答:1
在使用新扩展点 ReportPhishingCommandSurface 的 POC 中,我尝试获取访问令牌(以便提交图形 API 调用),但是该方法始终返回“SSO 失败,错误代码为“5001”。”没有其他信息。

我使用了

https://learn.microsoft.com/en-us/javascript/api/manifest/extensionpoint?view=word-js-preview#reportphishingcommandsurface-preview 上提供的 Microsoft 示例来获得一个运行示例并且只是修改被调用函数以调用 OfficeRuntime.auth.getAccessToken

outlook-addin outlook-web-addins outlook-restapi
1个回答
0
投票
Win32 Outlook 中的 ReportPhishingCommandSurface 实际上具有与基于事件的加载项相同的限制/功能。

https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/autolaunch?tabs=xmlmanifest#event-based-activation-behavior-and-limitations

需要的一件事是.wellknown 资源。 URI 请参阅此处:

https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/use-sso-in-event-based-activation

如果这不能解决问题,请告诉我们。

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