【问题标题】:How to find the oauth_verifier in Magento如何在 Magento 中找到 oauth_verifier
【发布时间】:2016-07-14 00:01:23
【问题描述】:

我必须使用 Magento Web API 的 OAuth 。我创建了一个带有网络面板的消费者,并且我有消费者密钥和消费者密钥。现在我必须找到访问令牌。所以我参考了一些材料并开始运行以下命令

oauth \
  --verbose \
   --query-string \
   --consumer-key c9c60d4aaf670c86acee7e93bb776e45 \
   --consumer-secret 0a0b845eb7507de84c63740b15561568 \
   --access-token-url http://localhost/magento/oauth/token \
   --authorize-url http://localhost/magento/oauth/authorize \
   --request-token-url http://localhost/magento/oauth/initiate \
   authorize

回应来了

服务器似乎支持 OAuth 1.0a;赋能支持。 请访问此网址进行授权: http://localhost/magento/oauth/authorize?oauth_token=6a57c2e2d3f9883a94bfd2087dd95a89 请输入SP提供的验证码(oauth_verifier):

现在我不知道在哪里可以找到验证码以及如何使用它。

帮我解决这个问题,。在此先感谢:)

【问题讨论】:

    标签: api magento oauth


    【解决方案1】:

    当您按要求执行时返回'请访问此网址进行授权:'

    在你的情况下,它
    http://localhost/magento/oauth/authorize?oauth_token=6a57c2e2d3f9883a94bfd2087dd95a89
    只需将其粘贴到您的浏览器中,它就会将您带到授权或拒绝页面。 (现在将无效)

    这是基于 --authorize-url

    我需要管理员权限,所以我使用
    --authorize-url http://www.myhost.com//admin/oauth_authorize

    【讨论】:

    猜你喜欢
    • 2017-11-15
    • 2013-12-14
    • 1970-01-01
    • 2023-03-16
    • 1970-01-01
    • 2014-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多