Outlook Addin单符号失败

发布于 2025-02-11 14:51:51 字数 623 浏览 2 评论 0原文

只需为Office365创建一些小型Outlook addin,并尝试通过MS帐户启用单个登录即可。将其部署到一些简单的第三方服务器上,并带有路径清单: https://domain1.domain1.domain1.domain2.com/子文件夹 。在明显的定义 webapplicationinfo 中,如文档中所述,为SSO提供了信息:

<Id>AppId</Id>
<Resource>api://domain1.domain2.com/appId</Resource>

但是每次我都得到privestuntime.auth.getAccestoken:{“ name”:“:”“:”:“ Invalid Application resource url提供了。清单中指定的资源URL无效。“,“代码”:13004}

看起来 resource ,但我不知道那里完全错了。

谢谢。

just create some small outlook addin for office365 and tried to enable single sign on via MS account. Deployed it to some simple 3rd party server with manifest by path: https://domain1.domain2.com/subfolder. In manifest defined WebApplicationInfo there put info for SSO as described in docs:

<Id>AppId</Id>
<Resource>api://domain1.domain2.com/appId</Resource>

but everytime I got OfficeRuntime.auth.getAccessToken: {"name":"Invalid application resource Url provided.","message":"Invalid resource Url specified in the manifest.","code":13004}

Looks like something is wrong with Resource but I have no idea that exactly is wrong there.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ペ泪落弦音 2025-02-18 14:51:51

确保URI对应于加载项清单文件的“资源”部分。在路径中可能会错过子文件夹。

Resource元素包含相同的URI(包括api:协议),您在使用Microsoft Identity平台注册加载项时使用了相同的URI。该URI的域部分必须匹配该域,包括&lt; resources&gt;的url中使用的任何子域&lt; id&gt;元素。

请参阅启用单个符号-on(SSO)在办公室加载项中以获取更多信息。

Make sure the URI corresponds to the Resources section of your add-in's manifest file. The subfolder can be missed in the path.

The Resource element contains the same URI (including the api: protocol) that you used when registering the add-in with the Microsoft identity platform. The domain part of this URI must match the domain, including any subdomains, used in the URLs in the <Resources> section of the add-in's manifest and the URI must end with the client ID specified in the <Id> element.

See Enable single sign-on (SSO) in an Office Add-in for more information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文