Share via

Error: BotFrameworkAdapter.processActivity(): 401 ERROR Error: Unauthorized. Invalid AppId passed on token: xxxxxxx-xxx-xxx-xxxx

Anonymous
2021-07-05T11:57:48+00:00

I cannot connect my MS Teams messaging extension with the MS Teams App. On running the action I get the following error:
Error: BotFrameworkAdapter.processActivity(): 401 ERROR

Error: Unauthorized. Invalid AppId passed on token: xxxxxxx-xxx-xxx-xxxx

Any help is appreciated.

Microsoft Teams | Microsoft Teams for business | Teams and channels | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-07-05T12:33:18+00:00

    Dear Ayan,

    I am Renzo, as an Independent Advisor and Office user, I'll help you with your question.

    You should add your own AppID and Password from App Studio to your code.

    There are times when you may need to create bots in Microsoft Teams that can access resources on behalf of the user, such as a mail service.

    In below link you will find an article where they demonstrates how to use Azure Bot Service v4 SDK authentication, based on OAuth 2.0. This makes it easier to develop a bot that can use authentication tokens based on the user's credentials. Key in all this is the use of identity providers, as we will see later.

    https://docs.microsoft.com/en-us/microsoftteams...

    Was this answer helpful?

    0 comments No comments