Forum Discussion
salvijansen
Oct 20, 2019Copper Contributor
MSAL vs. Microsoft Teams
As ADAL hasn't been touched in over two years now, I have migrated my application to MSAL. Sadly enough the Teams docs are still ADAL based. I have an application that is working fine outside Microsoft Teams. Once I embed it as an app inside Microsoft Teams, two things happen:
MSAL's acquireTokenSilent method, which returns a promise, fails silently without any possibility to know what happened. This has been raised before, many times:
- I tried to enable MSAL's debug logging info. Working fine stand-alone; inside Teams: not one log message.
There seems to have been a lab demo with MSAL's acquireTokenSilent in it, but that probably worked because it was launched from the config screen (or elsewhere) and not from the tab.
So on what location would acquireTokenSilent work? Should we move it to such an authentication popup to get it to work (far less silent though).
- Gousia_Begum
Microsoft
MSAL doesn’t yet support the ability to authenticate in an iframed environment, which is how Teams tabs work. That’s why all of our examples use AAD v1 and ADAL. We have been working with the MSAL team to fix this though, but we do not have a firm ETA to share.
- VivekanandhanCopper ContributorHello Team, is there any update for this? we have been working this.
- shachar1Copper Contributor
Gousia_Begum Hi. just wanted to check in to see if anything recently changed. I am having some issues making ADAL work within a Teams Tab and most replies to issues I've seen are to use MSAL.
thanks
- NishantMukhijaCopper Contributor
shachar1 Freddy Bang salvijansen Gousia_Begum
Guys, Is there any recent update over this?
I am facing a similar issue with the Teams app while using MSAL.
- Freddy BangCopper Contributor
Gousia_Begum , salvijansen with the new MSAL 1.2.0 release it seems like Teams is now supported have any of you verified it or plan to in near future?