feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Office.auth.getAccessToken() - API is not supported in Outlook PWA

Open DxDen1004 opened this issue 2 years ago • 1 comments

Describe the bug The Identity API is not supported by Outlook Add-ins, even though isSetSupported('Mailbox', '1.5') returns true

To Reproduce Steps to reproduce the behavior:

  1. Create a new Outlook Web Add-in
  2. Try to call the API with let token = Office.auth.getAccessToken();
  3. See the error message with code 13000 in the development console of your browser

Expected behavior: When calling the API, a valid Access Token is returned

Desktop:

  • OS: Windows 10 / 11
  • Browser: Microsoft Edge
  • Version: all versions

Additional context: I need to make a POST request and provide a Bearer Token authentication, which is not possible since the API call is not working.

DxDen1004 avatar Jun 23 '22 10:06 DxDen1004

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

welcome[bot] avatar Jun 23 '22 10:06 welcome[bot]