Outlook addin许可证令牌不作为“et query”字符串参数传递给addin iframe

时间:2017-01-13 04:54:30

标签: javascript outlook add-in office-js officedev

在我的Outlook插件中,我注意到许可证令牌根本不作为?et查询字符串传递。 我做了一些调试,找出以下内容: 似乎OsfControl中StoreType值的值总是硬编码为" exchange"在https://r1.res.office365.com/owa/prem/16.1569.8.2186260/scripts/microsoft.owa.extensibilitynext.js  当检索到etoken时,它会导致未定义的_omnexEntitlment,并且始终使用初始空字符串值检索它。



 getEToken: function() {
            return this._omexEntitlement ? this._omexEntitlement.etoken : this._etoken
        },




加载项(dropbox to outlook import)

1 个答案:

答案 0 :(得分:0)

许可证令牌仅包含在通过Office Store发布的加载项中。您可以为开发/测试场景复制此功能,但对于生产,它需要在存​​储中发布。有关更多信息,请参阅How licenses work for Office and SharePoint Add-ins

对于侧载加载项,您需要从加载项本身处理许可。这通常通过让用户在第一次激活加载项时进行身份验证来完成。