gpt4 book ai didi

azure - 错误 AADSTS50012 : Client is public so a 'client_assertion' should not be presented

转载 作者:行者123 更新时间:2023-12-04 18:27:48 26 4
gpt4 key购买 nike

尝试使用以下代码从 clientid 和证书生成 AAD token 时收到此错误。

Error: "AADSTS50012: Client is public so a 'client_assertion' should not be presented Native app"

代码:await context.AcquireTokenAsync(resource,assertionCert);

最佳答案

我找到了解决方案。

我正在 AAD 中将我的应用程序注册为 native 应用程序。应用程序应该已注册为WebApp

关于azure - 错误 AADSTS50012 : Client is public so a 'client_assertion' should not be presented,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42219139/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com