Blazor wasm with Microsoft Identity inside New Teams Tab

Rafael Rocha 0 Reputation points
2024-01-08T18:39:41.11+00:00

Hello guys!

I have an application in Blazor WebAssembly that use Microsoft Identity for autentication (Microsoft.Authentication.WebAssembly.Msal).

In previews Teams this application loads very well in a Tab or in teams tab (WebSite), using popup flow.

The problem is new Teams dosent show any popup from WebAssembly.Msal. If i set redirect flow dosent work because inside teams this is on iframe. So what are my options here?

Can i open a native teams dialog like office addins does and run the autentication flow?

Tks

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
756 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,884 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,664 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,562 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 71,511 Reputation points
    2024-01-09T16:51:19.78+00:00

    teams does not support msal. you use teams builtin SSO authentication support:

    https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/authentication/tab-sso-overview

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.