Hello,
I reviewed the vercel/chat repository, especially the Teams adapter, and I have a question about Teams user authentication.
From what I understood, @chat-adapter/teams appears to handle bot authentication through Azure Bot Service / Bot Framework using settings such as TEAMS_APP_ID, TEAMS_APP_PASSWORD, and TEAMS_APP_TENANT_ID. However, I could not find clear support for Teams user SSO or for retrieving a Microsoft / Entra ID JWT for the signed-in Teams user.
Our use case is the following:
- authenticate a Teams user
- retrieve the user's Microsoft / Entra ID JWT
- ideally from a bot interaction, or otherwise understand whether this must be done through a Teams Tab with
microsoftTeams.getAuthToken()
I did not find obvious support in the adapter for things such as:
TeamsSSOTokenExchangeMiddleware
OAuthPrompt
signin/tokenExchange
- Bot Framework user token retrieval flows
Could you please clarify:
- Is this scenario supported natively today by
@chat-adapter/teams?
- If not, what is the recommended approach with this SDK?
Thank you.