图API认证|请求body必须包含以下参数'grant_type'

Graph API authentication | The request body must contain the following parameter 'grant_type'

我正在尝试使用 Postman 对 Graph 进行身份验证。我有以下要求:

类型:Post Url: https://login.microsoftonline.com/[MyTenantIdHere]/oauth2/v2.0/token

Body = 原始:

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

但是,我收到此错误:

"error_description": "AADSTS900144: The request body must contain the following parameter: 'grant_type'.

知道如何解决这个问题吗?

在 postman 中尝试 X-www-form-urlencoded。