Call to getUserIdentityTokenAsync() returning a null token

跟風遠走 提交于 2019-12-13 12:22:44

问题


We have an add-in in production where, for certain users, the call to getUserIdentityTokenAsync() fails and returns a null token.

The response is

"Status" = "failed", 
"Error" = {message: "An internal error has occurred", name: "Internal Error"}

Would anyone know what could cause this type of failure? Certain users always get the error, and we have never seen the error locally or during development.

It seems to happen only for desktop Outlook users. We have not seen any errors for users when using the add-in via the browser.


回答1:


I am updating the answer based on a response from the Outlook Add-ins Team in the comments.

In MSI versions: 16.0.4540.1000 to 16.0.4585.1000 against Exchange 2013, GetUserIdentityToken did not work. In MSI versions before, 16.0.4540.1000 / 15.0.4931.1000 and C2R versions before 16.0.7813.1000 - calling GetUserIdentityTokenAsync along with MakeEwsRequestAsync would cause a failure

In my case, most of the users experiencing the problems had the client version numbers posted above. Upgrading their outlook version solved the issue.



来源:https://stackoverflow.com/questions/46546534/call-to-getuseridentitytokenasync-returning-a-null-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!