【发布时间】:2016-09-02 17:53:47
【问题描述】:
这是我第一次尝试 expressJS ;)
我正在尝试使用护照和 oauth2orize 实现 oauth2 服务器(密码工作流程)。
我使用 httpie(在 mac 上)来测试连接。
从我拥有的服务器控制台:
info: [bin/www] Listening on port 1234
POST /oauth/token - - ms - -
来自我拥有的测试客户端:
http: error: Request timed out (30s).
我将一个示例推送到 github。
安装:
node --version -> v6.1.0
npm install
node dataGen.js
npm start
测试命令:
http POST localhost:1234/oauth/token grant_type=password client_id=mobileV1 client_secret=abc123456 username=andrey password=simplepassword
【问题讨论】:
标签: express oauth-2.0 passport.js