【问题标题】:Error in Azure Authentication token requestAzure 身份验证令牌请求中的错误
【发布时间】:2018-04-15 12:24:24
【问题描述】:

我正在尝试通过 azure oauth2 api 进行身份验证,但它给了我一个特殊的错误。由于我已经提供了 grant_type,因此该错误消息非常令人困惑。请参考以下截图

我无法得到我在这里缺少的东西。 我提供的一个标头 - Content-Type: application/x-www-form-urlencoded

非常感谢任何帮助

【问题讨论】:

  • 尝试将Body类型改为x-www-form-urlencoded。
  • 谢谢。有效。但是我记得它之前正在处理表单数据。请发表您的评论作为答案,我会接受。

标签: oauth-2.0 azure-active-directory


【解决方案1】:

您可以将正文类型更改为x-www-form-urlencoded。

Content-Type 应该是application/x-www-form-urlencoded。

我们可以看到请求示例here。

【讨论】:

  • 如何解码令牌以获取客户详细信息?
  • @DivanshuAggarwal 感谢您的评论,但是通过位置问一个新问题怎么样?
猜你喜欢
  • 2020-08-18
  • 1970-01-01
  • 2016-07-17
  • 2019-02-21
  • 2021-09-23
  • 2016-09-04
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多