【问题标题】:Not getting access token after authentication and callback code to use elance-api身份验证和回调代码后未获取访问令牌以使用 elance-api
【发布时间】:2014-06-01 17:47:04
【问题描述】:

我正在尝试使用 OAuth2.0 设置 node.js 应用程序以使用 Elance API 我正在使用 passport.js 连接到 elance api,并且到目前为止能够正确获取代码。在使用api方法之前,但没有获取访问令牌。

也尝试过构建策略,但无法通过用户配置文件获取访问令牌来连接

我也从 php 中尝试过相同的方法,但在获得回调代码后它也被吸干了

这是我通过策略得到的错误:

failed to fetch user profile 
(status: 401 data: {"errors": [{"code":"missing_token","description": "Access token is required for this service"}]})

【问题讨论】:

    标签: node.js oauth-2.0 passport.js


    【解决方案1】:

    如果您发布一些您正在构建的策略的代码,那就太好了。看起来令牌的代码交换不起作用。项目在 GitHub 上吗?

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多