gpt4 book ai didi

java - "error_description": "AADSTS70002: The request body must contain the following parameter: ' client_secret or client_assertion'

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:08:27 34 4
gpt4 key购买 nike

我使用了https://github.com/AzureAD/azure-activedirectory-library-for-java/blob/master/src/samples/public-client-app-sample/src/main/java/PublicClient.java中的代码。唯一的区别是 CLIENT_ID 已更新。

我不断收到错误消息

"error_description":"AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'

我不确定如何以及在哪里指定这一点?管理员在客户端配置中是否需要做一些事情?

最佳答案

遇到同样的问题,终于解决了。就我而言,我使用的是从开发控制台的 Web 应用程序部分复制的重定向 URI(如常见的 Web URL),这使得服务器“认为”该请求来自 Web 客户端。从应用程序部分更改为 重定向 URI(格式为 urn:ietf:wg:oauth:2.0:oob ,这意味着它来自 native 客户端)后,我的 Android 应用程序终于可以运行了。

关于java - "error_description": "AADSTS70002: The request body must contain the following parameter: ' client_secret or client_assertion',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40858689/

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