Graph API身份验证|请求正文必须包含以下参数“ grant_type”

问题描述

我正在尝试使用邮递员向Graph进行身份验证。我有以下要求:

类型:发布 网址:https://login.microsoftonline.com/[MyTenantIdHere]/oauth2/v2.0/token

身体=原始:

{
  client_id: "[MyClientID]",grant_type: "client_credentials",scope: "https%3A%2F%2Fgraph.microsoft.com%2F.default",client_secret: "[MyClientSecret"
}

但是,我遇到此错误:

“ error_description”:“ AADSTS900144:请求正文必须包含 以下参数:“ grant_type”。

有什么办法解决这个问题吗?

解决方法

尝试用邮递员X-www-form-urlencoded。

enter image description here

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...