2017-05-04 51 views
1

我创建了一个Office插件,我试图提交给商店,但因为插件需要在Office 2013中工作而被拒绝。我正在使用ADAL 1.0.13验证AD Graph上的Microsoft Graph和我的应用程序。Office插件在Word 2013中不工作

由于某些原因,当我从Office 2013登录到365时,我无法获得Microsoft Graph的令牌,但我确实已经为我的应用程序获取它。

当我检查localStorage的存在是没有图的访问令牌

adal.token.renew.status5367d787-ea68-4352-a336-99d69dabc81d: Completed 
adal.token.renew.statushttps://graph.microsoft.com: In Progress 

该插件适用于每一个办公平台Office365,办公室2016年,IOS,MAC,除了办公室2013年

有什么想法铁定帮帮我。

谢谢

这里是我的ADAL登录

星期四,2017年5月4日18时50分07秒格林尼治标准时间:1.0.13-VERBOSE:位置变化事件从https://wd365.azurewebsites.net/https://wd365.azurewebsites.net/

星期四,2017年五月4日18:50:07 GMT:1.0.13-VERBOSE:位置变化事件从https://wd365.azurewebsites.net/https://wd365.azurewebsites.net/#/user

2017年5月4日星期四18:50:07 GMT:1.0.13-V ERBOSE:Url:/views/user.html地图资源:null

2017年5月4日星期四18:50:07 GMT:1.0.13-VERBOSE:Url:/ apiServer映射到资源:5367d787-ea68-4352 -a336-99d69dabc81d

星期四,2017年5月4日十八时50分07秒格林尼治标准时间:1.0.13-INFO:令牌可用于该URL/API服务器

星期四,2017年5月4日十八时50分07秒格林尼治标准时间: 1.0.13-详细:网址:https://graph.microsoft.com/v1.0/me地图资源:https://graph.microsoft.com

星期四,2017年5月4日18点50分07秒格林尼治标准时间:1.0.13-INFO:renewToken被称为资源:https://graph.microsoft.com

星期四,2017年5月4日18时50分07秒格林尼治标准时间:1.0.13-INFO:添加阿达尔框架文件:adalRenewFramehttps://graph.microsoft.com

星期四,2017年5月4日18:50: 07 GMT:1.0.13-VERBOSE:更新令牌预期状态:a3ad9e34-cbd9-4e79-84f9-6065edd6b335 | https://graph.microsoft.com

星期四,2017年5月4日18时50分07秒格林尼治标准时间:1.0.13-INFO:浏览网址:https://login.microsoftonline.com/common/oauth2/authorize?response_type=token&client_id=5367d787-ea68-4352-a336-99d69dabc81d&resource=https%3A%2F%2Fgraph.microsoft.com&redirect_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-详细:导航于:https://login.microsoftonline.com/common/oauth2/authorize?response_type=token&client_id=5367d787-ea68-4352-a336-99d69dabc81d&resource=https%3A%2F%2Fgraph.microsoft.com&redirect_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&prompt=none&login_hint=oasmat%40worldox.com&domain_hint=worldox.com

星期四,2017年5月4日18点50分07秒格林尼治标准时间:1.0.13-VERBOSE:设置负载状态挂起: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 GMT:1.0.13-INFO:将adal框架添加到文档:adalRenewFramehttps://graph.microsoft.com

2017年5月4日星期四18:50:08 GMT: 1.0。13-INFO:LoadFrame:adalRenewFramehttps://graph.microsoft.com

2017年5月4日星期四18:50:08 GMT:1.0.13-INFO:将adal框架添加到文档:adalRenewFramehttps://graph.microsoft .COM

星期四,2017年5月4日十八点五十分09秒格林尼治标准时间:1.0.13- 错误:错误时获取令牌资源:https://graph.microsoft.com栈:未定义

星期四,2017年5月4日18:50: 09 GMT: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" }

这里是我的终点在我的代码

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' 
    }, 
}; 

回答

0

基于错误信息,要求当它试图悄悄更新令牌失败。

请确保您之前登录过Azure AD,并且网络浏览器不会阻止发送Cookie。您的网络应用程序应该与机器上出现此问题的Azure AD端点(login.microsoftonline.com)处于同一安全区域。

+0

薛你有什么我可以遵循的文档,你如何从我的web应用程序更改安全区域以匹配AD的端点?是否有这个原因,只有在Windows 7上运行Office 2013客户端的计算机上才会出现IE11? –

+0

您可以通过在IE中打开此网站来检查站点的安全区域,然后我们可以通过Internet选项 - >安全性来检查它。它会将网站定位到特定区域。有关URL安全区域的更多详细信息,可以参考[此链接](https://msdn.microsoft.com/en-us/library/ms537183(v = vs.85).aspx#区域)。 –

相关问题