node.js - OAuth2 server: invalid or missing grant_type parameter -
i have nodejs-based oauth2 server (using oauth2-server
module) started in lan. want test postman rest client i'm getting error response:
{ "code": 400, "error": "invalid_request", "error_description": "invalid or missing grant_type parameter" }
this request configuration:
i have tried send parameters url error: method must post application/x-www-form-urlencoded encoding
.
thanks.
using postman send value query parameter 'oauth2-server' checks value body parameter using 'req.body'.so try send value body parameter or change req.body req.query inside node_modules/oauth2-server/lib/grant.js
Comments
Post a Comment