Skip to content

Support for Teams user authentication / retrieving Microsoft JWT from @chat-adapter/teams #270

@maxime-pharmania

Description

@maxime-pharmania

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:

  1. Is this scenario supported natively today by @chat-adapter/teams?
  2. If not, what is the recommended approach with this SDK?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions