即使授予了正确的范围,为什么 eBay 沙箱 OAuth 应用程序令牌生成也无法授予足够的权限?

问题描述 投票:0回答:1

尝试了多种选项来获取用于连接 Ebay Rest API 的应用程序令牌。

在调用 eBay API 时生成令牌或权限问题时最终出现问题。

尝试使用沙箱和默认 api.ebay.com auth_cope,如下所示:

尝试1:

grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.inventory https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.account https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.fulfillment https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.finances https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.item.draft https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.payment.dispute https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.item https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.reputation

尝试2:

grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope https:%3A%2F%2api.ebay.com%2oauth%2api_scope%2sell.inventory https:%3A%2F%2api.ebay.com%2oauth%2api_scope%2sell.account https:%3A%2F%2api.ebay.com%2oauth%2api_scope%2sell.fulfillment

所有三种方法都给出了令牌,但在 createOrReplaceInventoryItem API 时失败,下面是响应

Reason: {"errors":[{"errorId":1100,"domain":"ACCESS","category":"REQUEST","message":"Access denied","longMessage":"Insufficient permissions to fulfill the request."}]}

尝试以下请求但无法生成令牌:

尝试3:

grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory  https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.account https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment

无法获取访问令牌并显示以下消息。

{"error":"invalid_scope","error_description":"The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client"}

oauth-2.0 ebay-api
1个回答
0
投票

这个问题解决了吗,我也有同样的问题,但是不知道怎么解决

© www.soinside.com 2019 - 2024. All rights reserved.