Forum Discussion

salvijansen's avatar
salvijansen
Copper Contributor
Oct 20, 2019

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:

 

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).

 

 

  • salvijansen 

    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.

     

Resources