我应该在 Office 加载项的清单文件的 WebApplicationInfo 中放入什么 ID?

What ID should I put in the WebApplicationInfo of an Office Add-in's manifest file?

我读了this article,上面写着:

Id: The Application Id of the add-in's associated service as registered in the Azure Active Directory v 2.0 endpoint.

我还是不明白从哪里得到这个ID?我需要在 https://apps.dev.microsoft.com 注册应用程序并添加此 ID 还是其他内容?

我正在尝试检索 Office bootstrap 令牌,但可能由于此 ID 参数而无法正常工作。否则,我的清单已获批准

Office.context.auth.getAccessTokenAsync(function (result) {

getAccessTokenAsync fails with error 13004

是的,对于应用程序 ID,您必须在 azure v2.0 application portal 上注册您的应用程序。这将创建一个唯一的应用程序 ID

当您使用 Azure Active Directory v 2.0 endpoint portal. To register your application on https://apps.dev.microsoft.com 时,您必须在那里登录并注册新的应用程序。

申请注册成功后,您将在下方获得您的申请 ID。

申请注册见以下步骤:

步骤 1

输入一个有意义的应用程序名称,然后单击创建应用程序。

步骤 2

成功创建应用程序后,您将看到正确的应用程序 ID

应用名称下方。请参阅下面的屏幕截图。

您还可以获得以下信息:

密码

应用程序密钥

首选应用平台

申请权限

希望对您有所帮助。