microsoft-authentication-library-for-js icon indicating copy to clipboard operation
microsoft-authentication-library-for-js copied to clipboard

Can I use MSAL.js in the production Office Add-in

Open legusha opened this issue 1 year ago • 4 comments

Core Library

MSAL.js (@azure/msal-browser)

Wrapper Library

MSAL Angular (@azure/msal-angular)

Public or Confidential Client?

Public

Documentation Location

https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/authentication#single-sign-on-access-token-using-nested-app-authentication-preview

Description

Hello everyone, I have a question related to libraries.

"@azure/msal-angular": "^3.0.18", "@azure/msal-browser": "^3.15.0",

On the Learn.Microsoft website it is stated that

Don't use NAA in production add-ins

Also in this example it is indicated not to use NAA in production And also here

I have a question, right now I can't use the libraries @azure/msal-angular and @azure/msal-browser for Office Add-in in production mode?

legusha avatar Jun 12 '24 13:06 legusha

@legusha You can use msal js libraries for regular browser auth in production. Only NAA features are right now in pre-prod. cc @mattgeim FYI

sameerag avatar Jun 18 '24 21:06 sameerag

@legusha You can use msal js libraries for regular browser auth in production. Only NAA features are right now in pre-prod. cc @mattgeim FYI

Thank you for your answer, could you tell or give a link to the documentation what NAA features is?

And another question, can I use msal.js for desktop Office Add-ins?

legusha avatar Jun 18 '24 21:06 legusha

@legusha

You can find docs about NAA and Office add-ins specifically at https://aka.ms/NAADocs

You can find details on using the Office add-in Dialog API and using msal.js (non-NAA) similarly in those docs. https://learn.microsoft.com/en-us/office/dev/add-ins/develop/auth-with-office-dialog-api

If you have Office add-in questions, you can find additional resources here: https://learn.microsoft.com/en-us/office/dev/add-ins/resources/resources-links-help

mattgeim avatar Jun 19 '24 00:06 mattgeim

@legusha

You can find docs about NAA and Office add-ins specifically at https://aka.ms/NAADocs

You can find details on using the Office add-in Dialog API and using msal.js (non-NAA) similarly in those docs. https://learn.microsoft.com/en-us/office/dev/add-ins/develop/auth-with-office-dialog-api

If you have Office add-in questions, you can find additional resources here: https://learn.microsoft.com/en-us/office/dev/add-ins/resources/resources-links-help

Okey,thank you for answer

legusha avatar Jun 19 '24 15:06 legusha