AzureAD / microsoft-authentication-library-for-js

Microsoft Authentication Library (MSAL) for JS
http://aka.ms/aadv2
MIT License
3.51k stars 2.61k forks source link

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

Open legusha opened 2 weeks ago

legusha commented 2 weeks ago

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?

sameerag commented 1 week ago

@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

legusha commented 1 week ago

@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?

mattgeim commented 1 week ago

@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

legusha commented 1 week ago

@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