問題
在 Microsoft Entra ID(Azure AD)的 App registrations 建立 App (Supported account types 設定為 Accounts in this organizational directory only (你的組織 only - Single tenant)
)並建立它的 Certificates & secrets ,然後建立 Azure Bot 並設定 Microsoft App ID ,Type of App
設定為 Single Tenant 對應到上述的 App。
透過 App 的 clientId 及 secrets 到 https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
取得 token 時,發生AADSTS700016的錯誤。