Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
262 views
in Technique[技术] by (71.8m points)

azure active directory - Cannot open popup in Excel Web Addin VS2019

I am working on an Excel Addin project using asp.net core 3.1. I want to open a popup to enable users to log in to the system using Azure Ad authentication. I use window.open("url") but this always returns null regardless of the fact that I already disable the popup blocker in IE. I am using Excel 365, Window 10 enterprise version 1809, Internet Explorer version 11.1577.17763.0. Note that I cannot user Dialog API for office because the Msal library for Azure Ad authentication uses window.open behind the scene. Can anyone provide me some hints on this issue?

question from:https://stackoverflow.com/questions/65928247/cannot-open-popup-in-excel-web-addin-vs2019

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can use MSAL and the Office dialog API. See this sample: Office-Add-in-Microsoft-Graph-ASPNET, especially the file Add-in-Home-Index.js.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...