- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我使用了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/
对于用户身份验证,我使用最新的@azure/msal-angular 包。这个 Angular 库基于用于 AD 身份验证的最新 MSAL 库。但是库会抛出以下错误: ServerError: inv
我是 JWT 访问 token 生成方面的新手。我有公钥、私钥和 ClientID。我需要生成 Client_Assertion。 client_assertion:JWT(由客户端 ID、公共(pu
我想通过证书获取访问 token 。 我从我的应用程序中知道这些 client_id、grant_type、scope 的值。 但是我在哪里可以找到assertion和client_assertion
尝试使用以下代码从 clientid 和证书生成 AAD token 时收到此错误。 Error: "AADSTS50012: Client is public so a 'client_assert
我想在没有授权码的情况下获取访问 token ,所以使用下面的方法来获取它。但我面临的问题是“请求正文必须包含以下参数‘client_secret 或 client_assertion’” 你能就此提
我使用这个库https://github.com/AzureAD/azure-activedirectory-library-for-cordova ,这就是我编写代码的方式: document.ad
我使用这个库https://github.com/AzureAD/azure-activedirectory-library-for-cordova ,这就是我编写代码的方式: document.ad
我遇到以下问题: 异常:OAuth token 端点失败:状态:正文:{“error”:“invalid_client”,“error_description”:“AADSTS700025:客户端是公
我遇到以下问题: 异常:OAuth token 端点失败:状态:正文:{“error”:“invalid_client”,“error_description”:“AADSTS700025:客户端是公
这就是我编写代码并尝试获取输出的方式。 The request body must contain the following parameter: client_secret or client_a
我使用了https://github.com/AzureAD/azure-activedirectory-library-for-java/blob/master/src/samples/public
我正在尝试编写来自 here 的 Azure AD 用户身份验证代码。我正在提交有效的客户端 ID、用户名、密码、租户 ID、资源 ID。 它给了我以下错误: java.util.concurrent
我正在尝试编写来自 here 的 Azure AD 用户身份验证代码。我正在提交有效的客户端 ID、用户名、密码、租户 ID、资源 ID。 它给了我以下错误: java.util.concurrent
我是一名优秀的程序员,十分优秀!