如何在 Microsoft App 注册门户中注册 Office Web 插件

How to register Office Web Add-in in the Microsoft App Registration Portal

I am reading Microsoft's documentation on the topic,一如既往的高深莫测,一步一步来,我不知道如何填写那里的一半字段:

我添加Web和Web两个平台API

网络

用于重定向 URL 我添加在 Visual Studio Office 加载项的属性下找到的项目 URL?对吗?

网络API

我为应用程序 URI 添加相同的值?还有这是什么意思:

The fully qualified domain name (except for protocol) of the add-in. You must use a domain that you own. For this reason, you cannot use certain well-known domains such as azurewebsites.net or cloudapp.net

如果我的外接程序(基本上是一个网站)托管在 Azure 上怎么办?为什么我不能使用 azurewebsites.net?

我到底应该在应用程序 ID 中输入什么以及从哪里检索它?

for Redirect URL I add the Project URL found under properties of my Visual Studio Office Add-in? Is that correct?

没错。重定向 URI 是项目 URL。您还可以复制 SSL URL 并将此 URL 添加到注册门户的重定向 URL 列表中的重定向 URL 列表中:

for application URI I add the same value?

没有。正如文档所说,

An Application ID URI has been generated of the form “api://$App ID GUID$”.

应用程序 ID URI 示例:

这意味着如果您不在Application ID URI中输入任何值,它将默认生成为api://<applicaitonID>,只是like.If您想定义自己的Application ID URI,你可以像 api://<yourdomain>/<applicaitonID> 这样配置它。

可以像api://c6c1f32b-5e55-4997-881a-753cc1d563b, api://localhost:6789/c6c1f32b-5e55-4997-881a-753cc1d563b7api://example.azurewebsites.net/c6c1f32b-5e55-4997-881a-753cc1d563b7

范围值示例:

应用程序 ID URI 与范围一起使用。您应该在 web.configapp.config 中使用的范围值应该是 <applicationID URI>/<scope>。如果您未在应用程序 ID URI 中输入任何值,则范围值应为 api://<Application Id>/<Scope Name>.

范围值可以是:api://c6c1f32b-5e55-4997-881a-753cc1d563b7/access_as_user ,api://localhost:6789/c6c1f32b-5e55-4997-881a-753cc1d563b7/access_as_userapi://example.azurewebsites.net/c6c1f32b-5e55-4997-881a-753cc1d563b7/access_as_user