@Raghavendra G R - MS Teams tab uses iframe and it blocks to open login popup page.
So if you want to integrate it in Teams, you can implement Tab SSO.
Sample reference link:
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-sso/csharp
Thanks,
Chetan Sharma
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.