Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Suite - Mocha, Postman, Curl #13

Open
manjeshpv opened this issue Apr 13, 2017 · 2 comments
Open

Test Suite - Mocha, Postman, Curl #13

manjeshpv opened this issue Apr 13, 2017 · 2 comments

Comments

@manjeshpv
Copy link
Owner

Postman

https://www.getpostman.com/collections/37afd82600127fbeef28

curl

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -H "Postman-Token: c3df2fab-440f-09e4-0c5c-c9f46ef9836b" -d 'username=foo&password=bar&grant_type=password&client_id=publicClientId&client_secret=secretClientSecret' "http://localhost:3000/oauth/token"
curl -X GET -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization: Bearer YOUR_TOKEN" -H "Cache-Control: no-cache" -H "Postman-Token: 0f69e823-de90-b56e-265f-1c8ed5a57de2" "http://localhost:3000/"

oauthjs/node-oauth2-server#388

@rnl2004
Copy link

rnl2004 commented Apr 30, 2017

Hey, your code is not working.

$ curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -H "Postman-Token: c3df2fab-440f-09e4-0c5c-c9f46ef9836b" -d "username=admin&password=admin&grant_type=password&client_id=democlient&client_secret=democlientsecret" "http://localhost:3000/oauth/token"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 178 100 77 100 101 5133 6733 --:--:-- --:--:-- --:--:-- 6733{"message":"user is not defined","code":503,"name":"server_error","inner":{}}

I already updated my repo and mySQL db updated also any missing of code not committed? ;)

@rajeevverma076
Copy link

Server error: missing client grants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants