Open tanimcseku opened 3 months ago
Hi @tanimcseku - Thanks for raising the query. We will look into it and let you know the updates.
Update: We understand that the authentication flow that worked in the MS Teams V1 is not functioning as expected in V2, particularly when redirecting to open a SharePoint document.
We are aware of similar issues, we raised bug and actively working on a resolution. In the meantime, could you please confirm if you have followed the updated guidance for authentication and task modules in MS Teams V2? Additionally, please ensure that the URLs used in the task module are correctly formatted and that the domains are included in the validDomains list in your app manifest.
If the issue persists, could you provide us with the following information to assist you further:
Hi @Dinesh-MSFT ,
In the meantime, could you please confirm if you have followed the updated guidance for authentication and task modules in MS Teams V2?
Thanks for your response. FYI, I haven't made any implementation changes for V2 yet. The same auth flow that I discussed above was or still working fine in classic teams but not in teams v2. I reported that issue just after encountering this without making any kind of implementation changes. Same for the URLs used.
- The exact error message or behavior you are encountering after the authentication flow.
The auth flow seems working properly but as I said, once the auth flow completed with a success callback then I am trying to load the SharePoint doc URL inside the tasks module. And there is no prompt error. The only issue I am finding is when I am debugging tasks module window using engineering tools then I can a CORS error which happened when loading the SharePoint URL as blocking of loading login.microsoftonline.com and the tasks module is remaining blank.
- Any relevant screenshots or logs that could help us diagnose the problem.
So the screenshot will be just a console error of blocked loading login.microsoftonline.com inside tasks modal. Sorry cannot share any screenshot now
Hi @Dinesh-MSFT , below is the screenshot as you requested,
Hi @Dinesh-MSFT , may I get your support on this?
Hi everyone,
I am facing an issue similar to https://github.com/OfficeDev/microsoft-teams-library-js/issues/2340. To be more specific for my case, I have a feature where I am using the tasks module to open a SharePoint document. But since opening a SharePoint document through tasks module i.e. inside iFrame needs separate authentication. But login.microsoftonline.com is blocked loading inside an tasks module (iFrame) for the security reason. To solve that, I was using authentication module through below steps.
Above flow was working fine in MS Teams Classis/V1 version. But once I moved to Teams V2, that flow is not working anymore. It's mainly failing in the last step i.e. when opening the SharePoint document after auth flow in first 3 steps.
Regards, M Fazlul Karim