Share via

authentication for bot framework

Prince Amor 0 Reputation points
2025-12-11T03:04:23.1166667+00:00

Description: Hello Microsoft Support,

I’m a developer testing a bot and I need admin consent applied in the Microsoft Bot Framework tenant (botframework.com) for my application so the Bot Service (Web Chat / Test in Web Chat) can issue tokens that validate against my app.

App details:

Issue: When attempting to use Test in Web Chat the Bot Service issues tokens from the Bot Framework tenant. My bot receives AADSTS700016 / AADSTS90072 errors because a service principal for my app is not present in the botframework.com tenant and my user account is not an admin in that tenant and thus cannot perform admin consent.

Request: Please create a service principal for the above application in the Bot Framework tenant (botframework.com) and grant tenant-wide admin consent so tokens issued by the Bot Service validate correctly against the app. After consent, please confirm or reply with the enterprise application name or confirmation.

Verification steps I will perform after your confirmation:

  1. Restart the bot locally with the same MicrosoftAppId and client secret.
  2. Test via Test in Web Chat and confirm there are no AADSTS700016 or AADSTS90072 errors.

I have attached the jwt.ms redirect URL that shows the access_denied AADSTS90072 error and relevant logs. Please let me know if you need additional information.

Thank you, [Your name and contact info]Description: Hello Microsoft Support,

I’m a developer testing a bot and I need admin consent applied in the Microsoft Bot Framework tenant (botframework.com) for my application so the Bot Service (Web Chat / Test in Web Chat) can issue tokens that validate against my app.

App details:

Issue: When attempting to use Test in Web Chat the Bot Service issues tokens from the Bot Framework tenant. My bot receives AADSTS700016 / AADSTS90072 errors because a service principal for my app is not present in the botframework.com tenant and my user account is not an admin in that tenant and thus cannot perform admin consent.

Request: Please create a service principal for the above application in the Bot Framework tenant (botframework.com) and grant tenant-wide admin consent so tokens issued by the Bot Service validate correctly against the app. After consent, please confirm or reply with the enterprise application name or confirmation.

Verification steps I will perform after your confirmation:

  1. Restart the bot locally with the same MicrosoftAppId and client secret.
  2. Test via Test in Web Chat and confirm there are no AADSTS700016 or AADSTS90072 errors.

I have attached the jwt.ms redirect URL that shows the access_denied AADSTS90072 error and relevant logs. Please let me know if you need additional information.

Thank you, ******@robo-camp.org

Azure AI Bot Service
Azure AI Bot Service

An Azure service that provides an integrated environment for bot development.


1 answer

Sort by: Most helpful
  1. SRILAKSHMI C 17,780 Reputation points Microsoft External Staff Moderator
    2025-12-11T06:49:57.6233333+00:00

    Hello Prince Amor,

    Please follow the steps here and choose one of the options to authenticate,

    Add authentication to a bot in Bot Framework SDK - Bot Service | Microsoft Learn

    I hope it helps. If you have any other questions, please feel free to contact us.

    Thank you!

    0 comments No comments

Your answer

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