WebView2 Task Pane displays error during HTTP Authentication #1436
Labels
Area: add-ins platform
Issue related to the add-ins platform
Area: Edge WebView
Issue related to add-in's use of Edge WebView
Area: Outlook
Issue related to Outlook add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Type: product bug
Bug in the Office Add-ins platform or Office JavaScript APIs
On an environment configured to use Edge WebView2 on Outlook Beta channel, the Outlook task pane displays an error when it encounters a HTTP Authentication 401 challenge, 'Add-in Error: This add-in could not be started'. The task pane shows the login prompt correctly and can proceed with login however the error banner remains unless dismissed.
Expected Behavior
The described error banner should not appear and should be able to proceed with login using HTTP Authentication. This is how the task pane functioned with IE11 and Edge WebView1 as the browser in previous Outlook versions.
Current Behavior
Error banner displayed in task pane when navigating to perform HTTP Authentication. Appears when the 401 challenge is issued.
Steps to Reproduce, or Live Example
Only occurring on Beta Channel Outlook configured to use Edge WebView2 as described in documentation here.
Create a manifest that opens a task pane to a site that uses HTTP Authentication.
Observe that attempting to perform HTTP authentication causes an error banner to be displayed in task pane at the same time the login credentials prompt appears.
Example manifest using a public site attached.
** Change extension to xml.
** Scroll down site and click the 'protected page' link. Should be prompted for credentials and see error banner.
Context
Our add-in opens a task pane to a landing screen where user enters their username and then clicks authenticate which begins the HTTP Authentication process. This error banner will confuse them and make it appear the add-in is broken if they upgrade their Outlook.
Your Environment
Useful logs
The text was updated successfully, but these errors were encountered: