express - ExpressJS oauth2 with passport and oauth2orize -


this first expressjs try ;)

i'm trying implemente oauth2 server (password workflow) passport , oauth2orize.

i use httpie (on mac) test connection.

from server console have:

info: [bin/www] listening on port 1234 post /oauth/token - - ms - - 

from test client have:

http: error: request timed out (30s). 

i push example github.

install:

node --version -> v6.1.0 npm install node datagen.js npm start 

test command:

http post localhost:1234/oauth/token grant_type=password client_id=mobilev1 client_secret=abc123456 username=andrey password=simplepassword 

i didn't use mangoose.connect ;)


Comments