获取Invalid_grant:AADSTS65001:即使admin已同意,用户或管理员也尚未同意使用该应用程序

发布于 2025-01-28 05:59:45 字数 197 浏览 3 评论 0原文

我正在尝试访问从reactjs客户端应用程序中编写的.NET核心编写的Web API。我已经在Azure AD中注册了该应用程序,并在ReactJS API许可部分中对Web API征得了管理员同意。即使在配置此之后,我也会得到Invalid_grant:AADSTS65001:用户或管理员尚未同意使用该应用程序

可以为此提供帮助。我应该如何连接到Web API。

I am trying to access my web api written in .Net Core from a ReactJs client application. I have registered both the application in Azure AD and given Admin Consent to the Web API in ReactJs API Permission section. Even after configuring this I am getting invalid_grant: AADSTS65001: The user or administrator has not consented to use the application

Can any please help me regarding this please. How should I connect to the web api.

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

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

发布评论

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

评论(1

幽梦紫曦~ 2025-02-04 05:59:45

用户或管理员尚未同意使用应用程序 ”

  • 要解决错误“ invalid_grant:aAdsts65001 : 和授予管理员同意您应用程序的以下API权限:

转到Azure Portal - > Azure Active Directory->应用注册 - >您的应用程序 - > API许可 - >添加权限

“

  • 授予管理员同意后,请检查状态是否变成绿色。

  • 确保在您的身份验证选项卡中检查以下选项是否已检查如下:

“

如果仍然存在问题,请使用以下文档,如果有用:

4个方法来修复错误AADSTS65001(与管理员同意有关!) - #sharepointproblems / koskila.net

To resolve the error "invalid_grant: AADSTS65001: The user or administrator has not consented to use the application", try the following:

  • Make sure to have Global admin role and grant admin consent for the below API permissions of your application:

Go to Azure Portal -> Azure Active Directory -> App Registrations -> Your app -> API permissions -> Add permissions

image1

  • After granting admin consent, please check whether the status turned green or not.

  • Make sure whether the below options are checked or not in your authentication tab like below:

image2

If still the issue persists, make use of below document if helpful:

4 ways to fix error AADSTS65001 (issues with Admin Consent!) - #SharePointProblems / Koskila.net

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