验证代码流错误 - 缺少必需的参数。 (grant_type)

问题描述 投票:0回答:1

我正在尝试邮政编码的POST方法,用于Auth Code Flow的第2步。

但是,我得到的回应是 -

{
    "error": "invalid_request",
    "error_description": "missing required parameter(s). (grant_type)"
}

我已经将grant_type提供为authorization_code。无法弄清问题是什么。

Postman请求的屏幕截图。

enter image description here

onelogin
1个回答
0
投票

它应该是:

grant_type=authorization_code

您可以在此处查看文档:

https://developer.okta.com/blog/2018/04/10/oauth-authorization-code-grant-type

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.