使用 SSO 验证 Outlook WEB 加载项

Authenticating Outlook WEB Add-in with SSO

我正在尝试按照 official documentation, but got stuck at the section Updating the add-in manifest. Described in this reference 使用 SSO 验证 Outlook WEB 加载项的步骤,我必须在清单文件的 VersionOverrides 部分添加以下内容:

<WebApplicationInfo>
  <Id>912344b-661c-4424-0ksc-fb23131aa2e344</Id>
  <Resource>api://localhost:44374/912344b-661c-4424-0ksc-fb23131aa2e344</Resource>
  <Scopes>
    <Scope>profile</Scope>
    <Scope>user.read</Scope>
  </Scopes>
</WebApplicationInfo>

同时把版本从VersionOverridesV1_0改成VersionOverridesV1_1,因为我的WEB Add-in是适用于 Outlook(网络)。我在 Visual Studio 的清单中更改了它,但由于某种原因它给了我这个错误消息:

This is an invalid xsi:type 'http://schemas.microsoft.com/office/mailappversionoverrides:VersionOverridesV1_1'

为什么?

编辑:我偶然发现 this 上面写着:

Note: Currently only Outlook 2016 supports the VersionOverrides v1.1 schema and the VersionOverridesV1_1 type.

但我的加载项是 Web 而不是本地客户端...因此如何添加此 WebApplicationInfo 部分,当 VersionOverridesV1_0 不支持并继续文章中的后续步骤?

VersionOverridesV1_1 应该是 VersionOverridesV1_0child,它不是非此即彼。来自 documentation:

In order to implement multiple versions, the VersionOverrides element for the newer version must be a child of the VersionOverrides element for the older version. The child VersionOverrides element doesn't inherit any values from the parent.

<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Description resid="" />
    <Requirements>
    </Requirements>
    <Hosts>
    </Hosts>
    <Resources>
    </Resources>

    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
        <Description resid="" />
        <Requirements>
        </Requirements>
        <Hosts>
        </Hosts>
        <Resources>
        </Resources>
    </VersionOverrides>
</VersionOverrides>