【问题标题】:ExpressJS oauth2 with passport and oauth2orizeExpressJS oauth2 与护照和 oauth2orize
【发布时间】: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


    【解决方案1】:

    我没有使用 mangoose.connect ;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-30
      • 2012-09-10
      • 2015-06-18
      • 2016-08-06
      • 2019-09-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多