Outlook 365插件在Android Outlook Mobile App上引发401未经授权的错误 [英] Outlook 365 addin throws 401 unauthorized error on android outlook mobile app
问题描述
我正在开发可在所有现代浏览器(Android和iOS)上运行的Outlook加载项.
I am developing Outlook Add-In that will run over all modern browsers, android and iOS.
我正在使用Managed EWS API通过在作为我的远程服务的OAuthCredentials
类中传递ewsUrl
,itemId
和ewsToken
来获取电子邮件及其附件.
I am using Managed EWS API to fetch the email and its attachment by passing ewsUrl
, itemId
and ewsToken
in OAuthCredentials
class which is my remote service.
通过从UI使用Office.js getCallbackTokenAsync
方法并将所有这些信息传递到我的远程服务以使用Managed EWS API从交换服务器获取电子邮件,我得到了ewsToken
.
I am getting ewsToken
by using Office.js getCallbackTokenAsync
method from UI and passing all this information to my remote service to use the Managed EWS API to fetch email from exchange server.
对于浏览器来说,它工作正常,但是当我们在Android上使用Outlook Mobile时,ewsUrl
返回null
,我将其硬编码为https://outlook.office365.com/ews/exchange.asmx
,但现在却出现了401 unauthorized
错误.
For browsers it works fine but when we use Outlook Mobile on Android, ewsUrl
returns null
which I hard-coded to https://outlook.office365.com/ews/exchange.asmx
but now I am getting 401 unauthorized
error.
如何确定ewsToken
或itemId
是错误的?
How can I identify if ewsToken
or itemId
is wrong?
推荐答案
每个文档,Android版Outlook或iOS版Outlook不支持EWS功能.这包括ewsUrl
,convertToEwsId
以及与调用EWS相关的其他方法.
Per the documentation, EWS functions are not supported by Outlook for Android or Outlook for iOS. This includes ewsUrl
, convertToEwsId
and other methods related to calling into EWS.
我建议访问 UserVoice 并添加您的建议.
I recommend visiting the UserVoice and adding your suggestion.
这篇关于Outlook 365插件在Android Outlook Mobile App上引发401未经授权的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!