OAuth2服务器:无效或缺lessgrant_type参数

我有一个基于NodeJS的OAuth2服务器(使用oauth2-server模块)在我的局域网中启动。 我想用邮递员REST客户端来testing它,但我得到这个错误响应:

 { "code": 400, "error": "invalid_request", "error_description": "Invalid or missing grant_type parameter" } 

这是我的请求configuration:

请求

我试图通过URL发送参数,但我得到的错误: Method must be POST with application/x-www-form-urlencoded encoding

谢谢。

使用邮递员您发送值作为查询参数,但'oauth2-server'使用'req.body'检查值作为身体参数。所以尝试发送值作为身体参数或更改req.body req.query在node_modules / oauth2-server / lib / grant.js里面