Closed abegun closed 4 years ago
thanks for the triage @Rick-Kirkham. @smaremanda please let me know how I can aid in investigation, or if there are things you'd like me to try on my end.
@smaremanda - any thoughts to share here?
@abegun - we are looking into this issue. We'll follow up here as well as via the email thread we have open with you.
@abegun - we are looking into this issue. We'll follow up here as well as via the email thread we have open with you.
thanks Sudheer!
I'm going to close this out :) ! After some investigation from Microsoft and some further digging on my side it looks like the Edge WebView control takes exception to 404 responses and will close the addin if that happens. In this particular case, for our deployed webapp (i.e. not running on localhost) we are using Azure CDN to serve the static webapp, which is in turn a SPA. Deep link access into our app (including the /callback URL from the OIDC provider) was returning a 404 with the error page of index.html so all continued to work in the browser (normally). I found some good issues on Stack Overflow and GitHub that have suggestions on doing a redirect instead of returning a 404 for this type of webapp deployment:
https://github.com/MicrosoftDocs/azure-docs/issues/43257#issuecomment-580668444
Hope this helps anyone else who stumbles upon this.
We have an addin for Word that is following the guidance here (w/out SSO) to authenticate with AAD or Google: https://docs.microsoft.com/en-us/office/dev/add-ins/develop/auth-with-office-dialog-api
The flow is working as expected in:
The flow breaks in Windows Word w/ WebView (EdgeHTML) when the addin/manifest is using our staging or production environments. After AAD Auth, the redirect back to our page fails (i.e. from our end, breakpoints in the index for the page never hit) and the WebView is torn down (at least an attached debugger disappears at that point). The dialog displays:
ADD-IN ERROR A problem occurred while trying to reach this add-in." is displayed.
[retry]
Expected Behavior
Desktop Word w/ WebView should work like other hosts :)
Current Behavior
See above.
Steps to Reproduce, or Live Example
Context
This is a core blocker for most of our customers since:
Your Environment
Useful logs
Please let me know of any particular logs that can be useful or how to enable more verbose logging. In particular, if there is a way to have Word not tear down the WebView control so that the final logs can be captured that would be great.
Thanks for the the help! -andrew