'Asp.Net Web Forms App integrate into MS Teams

I have a Asp.Net Web Forms app which I have built. I would like to have it integrated into a MS Teams site, but im unsure which Authentication model to use with Teams. I would like it to inherit/know if the user is authenticated in the MS Teams site, username, role etc... MS Teams seems to be an iFrame, how will my app know that its within a MS Teams site.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source