Example of using MSAL in Outlook Native.
See https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/1072 .
I've deployed this add-in to GitHub for testing purposes.
Add this manifest:
https://eirikb.github.io/msal-outlook-demo/manifest.xml
Run like this:
.env
with CLIENTID=...
with Client ID of your AAD appnpm i
npm start
What makes this demo special:
Overrides openPopup
of MSAL with custom hack using Outlook Office API Dialog.