UnAuthorized error with access token generated from Outlook WebAddin
0
2
I am trying to use access token generated in Outlook Addin to download mail attachments, it is throwing an unauthorized error(401). Looks AccessToken is not valid. Using the accessToken within 5 min after generation in the add-in to make sure to avoid expired code. Followed steps suggested in Office documentation and created the C# code. My code gist is available here : https://gist.github.com/rajeevprasanna/6b0ba1db1599500a94451958b4f52d79 My add-in manifest is available here which asks ReadWriteMailbox permission : https://gist.github.com/rajeevprasanna/5ef93e3df80f304826742bb81a0b4421#file-addin-manifest-xml-L64 I am experimenting on Office365 Outlook WebClient but I have to work on a uniform solution which works on all outlook instances and office365 and Exchange versions. Code for extracting access token...