"error_description":"AADSTS70002:请求正文必须包含以下参数:"client_secret或client_assertion" [英] "error_description":"AADSTS70002: The request body must contain the following parameter: 'client_secret or client_assertion'

查看:69
本文介绍了"error_description":"AADSTS70002:请求正文必须包含以下参数:"client_secret或client_assertion"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了

I used the code in https://github.com/AzureAD/azure-activedirectory-library-for-java/blob/master/src/samples/public-client-app-sample/src/main/java/PublicClient.java. The only difference is the CLIENT_ID is updated.

我不断收到错误消息

"error_description":"AADSTS70002:请求正文必须包含以下参数:"client_secret或client_assertion"

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

我不确定如何以及在哪里指定?管理员在客户端的配置中是否需要做些什么?

I am not sure how and where to specify this? Is there something that needs to be done in the configuration of the client by the admin?

推荐答案

出现相同的问题,并最终解决.在我的情况下,我使用的是从开发者控制台的"Web应用程序"部分复制的重定向URI (类似于常见的Web URL),这使服务器认为"请求来自Web客户端.从应用程序部分更改为重定向URI (格式为 urn:ietf:wg:oauth:2.0:oob ,这表示它来自本地客户端)后,我的Android应用终于可以了.

Had the same issue and finally resolved. In my case I was using the Redirect URI (like a common web URL) copied from Web application section in dev console, which made the server "think" the request was from a web client. After changing to the Redirect URI (something in format of urn:ietf:wg:oauth:2.0:oob , which means it's from a native client) from the application section, my Android app finally worked.

这篇关于"error_description":"AADSTS70002:请求正文必须包含以下参数:"client_secret或client_assertion"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆