OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
670 stars 95 forks source link

Web add-in not loading in new Outlook windows version #4615

Open ismrahi opened 2 months ago

ismrahi commented 2 months ago

Provide required information needed to triage your issue

Recently we developed outlook web add-in using office.js and its working fine with older version of outlook. But with new outlook is not working

Your Environment

Expected behavior

Web add-in must load sidebar

Current behavior

Its not loading and gives this error image

Steps to reproduce

  1. Open the Calendar view and load the web add-in from toolbar ribbon


Link to live example(s)




Provide additional details




Context

Our business very much satisfied with our plugin which was newly developed! But with new outlook version its not working any more :(

Useful logs

image

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

ismrahi commented 2 months ago

Manifest_file.txt

please find the attached Manifest file. This same file working fine with older version but not with newer versions..

FYI: for security purposes changed the domain names...

mmanjaree-msft commented 2 months ago

@ismrahi Thanks for reporting. Can you please also share if you see any errors in console

ismrahi commented 2 months ago

@ismrahi Thanks for reporting. Can you please also share if you see any errors in console

Thanks for reply. I have already added console errors in Useful logs section. Let me know if you need any further logs.

mmanjaree-msft commented 2 months ago

@ismrahi What I am looking for is errors in console. If there are any error coming from office js , please share that. Also is the add-in working in outlook web?

ismrahi commented 2 months ago

@mmanjaree-msft : Some console errors are like below even before launching plugin on sidebar.

This document requires 'TrustedScriptURL' assignment

Plugin also not working outlook web!

Swathy-Mothilal commented 2 months ago

@ismrahi Could you please confirm if you are able to launch other-addins?

ismrahi commented 2 months ago

@Swathy-Mothilal : we are not using any custom web add-ins which build using outlook js. Some standard apps seems o be working fine with new outlook version.

rkpathak commented 2 months ago

@ismrahi Is this the real source location that your addin is trying to load or its just some dummy site? https://examplecompany.com/sap/bc/bsp/sap/Z_PLUG/taskpane.html?sap-client=030

Can you share the actual manifest by creating a private repository and adding us to the same.

ismrahi commented 2 months ago

@rkpathak : That is dummy site. We are doing authentication using SAML, could be that issue??

So in manifest file we added AppDomains as https://login.microsoftonline.com and our custom domain.

Thanks

ismrahi commented 2 months ago

@rkpathak : any update on this?

rkpathak commented 2 months ago

@ismrahi Please share the actual manifest that is causing problem. You can upload it to a private repository and add us there.

ismrahi commented 2 months ago

@rkpathak I have shared the original manifest file with you as requested. Thanks

rkpathak commented 2 months ago

@ismrahi How you shared the manifest, I cant find it? Can you share the link or create a private repo and add @exextoc to it.

ismrahi commented 2 months ago

I have added both user profiles and below is the status

image

ismrahi commented 2 months ago

We conducted a further analysis and discovered that the issue lies with SAML authentication (using Microsoft Entra ID) for our app.

When using SSO with certificates, the add-in form appears correctly on the right task pane. Additionally, we noticed in the developer tools that with SAML, there are numerous redirects and authentication loops.

I have shared the .HAR file from a private repository for your review.

Here is the screenshot from the developer tools:

image

ismrahi commented 1 month ago

any update on this? Thanks

neprasad-microsoft commented 1 month ago

@JuaneloJuanelo, can you help with the right contact here for authentication.

ismrahi commented 1 month ago

are there any other ways where we can get trace/logs besides F12 dev tools? Local PC or office 365?

neprasad-microsoft commented 1 month ago

This is the wiki on collecting logs - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues

ismrahi commented 1 month ago

This is the wiki on collecting logs - https://github.com/OfficeDev/office-js/wiki/Collecting-log-files-for-Outlook-Add%E2%80%90ins-issues

We attempted those steps but did not find any useful information. Could you please share any registry settings or other methods we can activate to obtain extended logs?