You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The add-in can pass this information to the Microsoft authentication library (MSAL.js) to get an access token for the current session.
3641
+
*
3642
+
* @remarks
3643
+
*
3644
+
* **Hosts**: Excel, OneNote, Outlook, PowerPoint, Word
3645
+
*
3646
+
* **Requirement set**: NestedAppAuth 1.1
3647
+
*
3648
+
* @returns Promise to the AuthContext object.
3649
+
*/
3650
+
getAuthContext(): Promise<AuthContext>;
3638
3651
}
3639
3652
/**
3640
3653
* Provides options for the user experience when Office obtains an access token to the add-in from AAD v. 2.0 with the `getAccessToken` method.
@@ -3691,6 +3704,35 @@ declare namespace Office {
3691
3704
*/
3692
3705
forMSGraphAccess?: boolean;
3693
3706
}
3707
+
/**
3708
+
* Represents the user information which can be passed to the Microsoft Authentication Library for JavaScript (MSAL.js).
3709
+
*/
3710
+
interface AuthContext {
3711
+
/**
3712
+
* The unique ID of the account.
3713
+
*/
3714
+
userObjectId: string;
3715
+
/**
3716
+
* The full tenant or organizational ID that this account belongs to.
3717
+
*/
3718
+
tenantId: string;
3719
+
/**
3720
+
* The user's internet-style login name, based on the Internet standard RFC. Also known as UPN.
3721
+
*/
3722
+
userPrincipalName: string;
3723
+
/**
3724
+
* The identity type by its identity provider (IdP) for this account. "aad" represents an organization account and "msa" represents a {@link https://support.microsoft.com/account-billing/72f10e1e-cab8-4950-a8da-7c45339575b0 | Microsoft personal account}.
3725
+
*/
3726
+
authorityType: "aad" | "msa" | "other";
3727
+
/**
3728
+
* The URL that indicates a directory that MSAL can request tokens from.
3729
+
*/
3730
+
authorityBaseUrl: string;
3731
+
/**
3732
+
* An optional claim that provides a hint about the user account attempting to sign in.
3733
+
*/
3734
+
loginHint: string;
3735
+
}
3694
3736
/**
3695
3737
* Represents a modal notification dialog that can appear when the user attempts to close a document. The document won't close until the user responds.
3696
3738
* The notification dialog will allow the user to confirm the request to close the document or cancel the request to close the document.
0 commit comments