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:

request

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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -