Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView2 Task Pane displays error during HTTP Authentication #1436

Closed
westconference opened this issue Oct 14, 2020 · 5 comments
Closed

WebView2 Task Pane displays error during HTTP Authentication #1436

westconference opened this issue Oct 14, 2020 · 5 comments
Assignees
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

Comments

@westconference
Copy link

westconference commented Oct 14, 2020

Message from office-js bot:
We’re closing this issue because it has been inactive for a long time. We’re doing this to keep the issues list manageable and useful for everyone. If this issue is still relevant for you, please create a new issue.
Thank you for your understanding and continued feedback.

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.

  • The site may consist of an initial landing page and then a button to perform the 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.
  • challenge_auth_site.txt
    ** 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

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC Desktop
  • Host [Excel, Word, PowerPoint, etc.]: Outlook 365
  • Office version number: Version 2011, 16.0.13408.20000 64-bit (Beta channel)
  • Operating System: Windows 10 Pro 2004 (all updates installed as of 2020-10-14)

Useful logs

task pane error banner

task_pane_error_401

@ghost ghost added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Oct 14, 2020
@wamaina wamaina added Area: add-ins platform Issue related to the add-ins platform Area: Outlook Issue related to Outlook add-ins Type: product bug Bug in the Office Add-ins platform or Office JavaScript APIs labels Oct 14, 2020
@wamaina wamaina removed the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Oct 14, 2020
@exextoc exextoc assigned croicu and unassigned exextoc Oct 14, 2020
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Edge WebView Issue related to add-in's use of Edge WebView labels Oct 14, 2020
@westconference
Copy link
Author

@smaremanda hi, has there been any progress on this? Were you able to reproduce it internally?

@croicu croicu assigned smaremanda and croicu and unassigned smaremanda and croicu Oct 30, 2020
@smaremanda
Copy link

@westconference - thanks for bringing this up during the community call this am. We're working on this issue along with the Edge team. I can confirm that we are able to repro this internally. Will keep you updated on the progress.

@westconference
Copy link
Author

@smaremanda this is still occurring, any updates? Getting worried as the documentation says WebView2 is going to be rolling out at the end of March.

@zunquan
Copy link

zunquan commented Mar 26, 2021

@westconference. this is a known issue in WebView2. We are waiting for a fix from WebView2. In the meantime, we have a mitigation for the 1st time when this happens during an addin's activation. Basically, when an user activates your addin, he\she will see the login prompt WITHOUT the error banner. But if he\she inputs wrong creds and triggers the login prompt again, the error banner will show. The mitigation is in build 16.0.13525.10000 and later.

@croicu croicu assigned zunquan and unassigned smaremanda Aug 17, 2021
@gitchristopher
Copy link

Has there been any development on this?
I am creating an add-in that is suffering from this error when a user logs in.

@gergzk gergzk closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

8 participants