Update getAccessToken support in Outlook (#65646)

This commit is contained in:
Sam Ramon
2023-05-30 14:21:29 -07:00
committed by GitHub
parent 6ffd2748f1
commit f785493e3e
3 changed files with 21 additions and 9 deletions

View File

@@ -1549,9 +1549,13 @@ declare namespace Office {
* **Applications**: Excel, OneNote, Outlook, PowerPoint, Word
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/identity-api-requirement-sets | IdentityAPI 1.3}
*
* **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
*
*
* **Important**: In Outlook, this API isn't supported in the following scenarios.
*
* - If the add-in is loaded in an Outlook.com or Gmail mailbox.
*
* - If the add-in is loaded in Outlook on the web in the Safari browser. This results in error 13001 ("The user is not signed into Office").
*
* **Note**: In an Outlook event-based activation add-in, this API is supported in Outlook on Windows starting from Version 2111 (Build 14701.20000).
* To retrieve an access token in older builds, use
* {@link https://learn.microsoft.com/javascript/api/office-runtime/officeruntime.auth?view=common-js-preview#office-runtime-officeruntime-auth-getaccesstoken-member(1) |

View File

@@ -1541,11 +1541,15 @@ declare namespace Office {
* @remarks
*
* **Applications**: Excel, OneNote, Outlook, PowerPoint, Word
*
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/identity-api-requirement-sets | IdentityAPI 1.3}
*
* **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
*
*
* **Important**: In Outlook, this API isn't supported in the following scenarios.
*
* - If the add-in is loaded in an Outlook.com or Gmail mailbox.
*
* - If the add-in is loaded in Outlook on the web in the Safari browser. This results in error 13001 ("The user is not signed into Office").
*
* **Note**: In an Outlook event-based activation add-in, this API is supported in Outlook on Windows starting from Version 2111 (Build 14701.20000).
* To retrieve an access token in older builds, use
* {@link https://learn.microsoft.com/javascript/api/office-runtime/officeruntime.auth?view=common-js#office-runtime-officeruntime-auth-getaccesstoken-member(1) |

View File

@@ -349,12 +349,16 @@ declare namespace OfficeRuntime {
* This API requires a single sign-on configuration that bridges the add-in to an Azure application. Office users sign-in with Organizational
* Accounts and Microsoft Accounts. Microsoft Azure returns tokens intended for both user account types to access resources in the Microsoft Graph.
*
* **Important**: In Outlook, this API isn't supported if the add-in is loaded in an Outlook.com or Gmail mailbox.
*
* @remarks
*
* **Applications**: Excel, Outlook, PowerPoint, Word
*
* **Important**: In Outlook, this API isn't supported in the following scenarios.
*
* - If the add-in is loaded in an Outlook.com or Gmail mailbox.
*
* - If the add-in is loaded in Outlook on the web in the Safari browser. This results in error 13001 ("The user is not signed into Office").
*
* @param options - Optional. Accepts an `AuthOptions` object to define sign-on behaviors.
* @returns Promise to the access token.
*/