首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未在Word 2013中工作的Office Addin

未在Word 2013中工作的Office Addin
EN

Stack Overflow用户
提问于 2017-05-04 20:14:46
回答 1查看 129关注 0票数 1

我创建了一个Office,我正在尝试提交给商店,但是我被拒绝了,因为这个加载项需要在Office 2013中工作。我正在使用Adal1.0.13认证微软图形和我在AD上托管的应用程序。

由于某种原因,当我从Office 2013登录到365时,我无法获得Microsoft的令牌,但我确实在我的应用程序中获得了它。

当我检查本地存储时,图中没有访问令牌。

代码语言:javascript
复制
adal.token.renew.status5367d787-ea68-4352-a336-99d69dabc81d: Completed 
adal.token.renew.statushttps://graph.microsoft.com: In Progress

该加载项适用于每个办公平台Office365、office 2016、IOS、MAC,但Office 2013除外。

任何想法都会有帮助。

谢谢

这是我的ADAL日志

清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细:从https://wd365.azurewebsites.net/https://wd365.azurewebsites.net/的位置变更事件 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细:从https://wd365.azurewebsites.net/https://wd365.azurewebsites.net/#/user的位置变更事件 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细: Url: /view/user.html映射到资源: null 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细: Url: /apiServer映射到资源:5367d787-ea68-4352-a336-99d69dabc 81d 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-INFO:令牌可用于此url /apiServer 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细: Url:https://graph.microsoft.com/v1.0/me映射到资源:https://graph.microsoft.com 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-信息: renewToken是资源:https://graph.microsoft.com 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-INFO:在文档中添加adal框架:adal更新框架https://graph.microsoft.com 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细:更新令牌预期状态: a3ad9e34-cbd9-4e79-84f9-6065edd6b335|https://graph.microsoft.com 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-信息:导航网址:uri=https%3A%2F%2Fwd365.azurewebsites.net%2F&state=a3ad9e34-cbd9-4e79-84f9-6065edd6b335%7Chttps%3A%2F%2Fgraph.microsoft.com&client-request-id=0d76a714-62c9-45ca-af04-f548dd658f63&x-client-SKU=Js&x-client-Ver=1.0.13 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细:导航到:hint=worldox.com 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-详细:将加载状态设置为待定:https://graph.microsoft.com 清华,2017年5月4日18:50:07格林尼治时间:1.0.13-INFO: LoadFrame: adalRenewFramehttps://graph.microsoft.com 清华,2017年5月4日18:50:08格林尼治时间:1.0.13-INFO:在文档中添加adal框架:adal更新框架https://graph.microsoft.com 2017年5月4日清华时间格林尼治时间:1.0.13-INFO: LoadFrame: adalRenewFramehttps://graph.microsoft.com 清华,2017年5月4日18:50:08格林尼治时间:1.0.13-INFO:在文档中添加adal框架:adal更新框架https://graph.microsoft.com 清华2017年5月4日18:50:09获取资源令牌时GMT:1.0.13-ERROR:错误:https://graph.microsoft.com堆栈:未定义 清华,2017年5月4日18:50:09格林尼治时间:1.0.13-INFO:在响应中获取错误:{ "method":"GET", "transformRequest":[null], "transformResponse":[null], "url":"https://graph.microsoft.com/v1.0/me", "headers": {"Accept":"application/json, text/plain,*/*"}, "data": "AADSTS50058: A silent sign-in request was sent but no user is signed in. The cookies used to represent the user's session were not sent in the request to Azure AD. This can happen if the user is using Internet Explorer or Edge, and the web app sending the silent sign-in request is in different IE security zone than the Azure AD endpoint (login.microsoftonline.com). Trace ID: 1cacf014-8aa1-4cb9-981d-a6addb0d1700 Correlation ID: 0d76a714-62c9-45ca-af04-f548dd658f63 Timestamp: 2017-05-04 18:50:12Z|login_required|undefined" }

下面是我的代码中的端点

代码语言:javascript
复制
var azureADConfig = {
    clientId: "5367d787-ea68-4352-a336-99d69dabc81d",
    endpoints: {
        'https://graph.microsoft.com': 'https://graph.microsoft.com',
        'https://wdwebauth.azurewebsites.net': '5367d787-ea68-4352-a336-99d69dabc81d'
    },
};
EN

回答 1

Stack Overflow用户

发布于 2017-05-05 02:47:54

根据错误消息,请求试图无声地更新令牌时失败。

请确保您之前已登录Azure广告,并且网页浏览器不会阻止cookie的发送。您的web应用程序应该与有此问题的计算机上的Azure端点(login.microsoftonline.com)位于相同的安全区域。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43792054

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档