租户的管理员尚未安装应用程序,也没有由租户中的任何用户同意。身份验证错误

发布于 2025-01-26 03:52:26 字数 191 浏览 2 评论 0原文

在将Azure Bot连接到服务器时的错误。

enter image description here

Error while connecting an azure bot to the server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谁许谁一生繁华 2025-02-02 03:52:26
  • 检查来宾用户设置
    导航到租户A(Admin) - &GT中的Azure Active Directory; 用户设置 - > 管理外部协作设置
    SET 访客用户权限 no

“在此处输入映像说明”

pentant a(admin)中的Azure Active Directory > 企业应用程序 - > 用户设置
SET 用户可以同意代表其数据访问公司数据的应用程序 是是

请参阅关于会员用户和访客用户用于类似问题的解决方案有关更多信息

  • Check the Guest user settings
    Navigate to the Azure Active Directory in tenant A (Admin) -> User settings -> Manage external collaboration settings
    set Guest users permissions are limited to No

enter image description here

Navigate to the Azure Active Directory in tenant A (Admin) -> Enterprise applications -> User settings
set Users can consent to apps accessing company data on their behalf to Yes.

enter image description here

Please refer about the member user and guest user and Solution for the similar issue for more information

我喜欢麦丽素 2025-02-02 03:52:26

TL; Dr

Surprion,惊喜的错误实际上是在说出问题是什么。您要么尝试与错误的租户联系,要么未注册您的应用程序。

话虽如此,您在哪里可以找到租户ID

打开 Azure Portal ,然后使用搜索功能导航到 Active Directory 概述您应该找到租户ID

如果您正在使用 github Action Terraform ,例如我自己。
您需要在 .yml 文件中设置以下行。

env:

  ARM_TENANT_ID: ${{ secrets.AZURE_AD_TENANT_ID }}

您的github存储库中还应有一个名为 azure_ad_tenant_id 秘密

​/I.sstatic.net/jpuuy.png“ alt =”在此处输入图像描述”>

TL;DR

Surprise, surprise the error is actually stating what the problem is. You either try to reach the wrong tenant or your app is not registered.

That being said, where can you find the Tenant ID?

Open the Azure Portal, then using the search functionality navigate to Active Directory. There under Overview you should find the Tenant ID.

enter image description here

If you are using GitHub Actions and Terraform such as myself.
You would need to set the following line in your .yml file.

env:

  ARM_TENANT_ID: ${{ secrets.AZURE_AD_TENANT_ID }}

There should also be a secret named AZURE_AD_TENANT_ID in your GitHub repository.

enter image description here

enter image description here

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文