我正在尝试使用以下请求从 Postman 调用(POST)Auth0 委托端点,如 Auth0 所建议的:
Content-Type: 'application/json'
{
"client_id": "{CLIENT_ID}",
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
"id_token": "{YOUR_ID_TOKEN}",
"target": "lwTL1rYVfC0KsBUFPeKWY3HvGjbIgdDM",
"api_type": "salesforce_api",
"scope": "openid"
}
即使上述请求中包含 grant_type 参数,我也会收到此错误:
{
"error": "invalid_request",
"error_description": "Missing grant_type parameter"
}
我在这里做错了什么?