oauth - Uber api 集成错误 uber oauth 令牌 (invalid_scope)
问题描述
我在一家雇用 api uber 集成来控制其员工的运营和收入的公司工作。但是当使用“https://login.uber.com/oauth/v2/token”在api中进行调用时,会返回一个“error”错误:“invalid_scope”。
我们正确提供了身份验证,并且仪表板上的范围以及权限授予都正确配置。
范围 | 解释 |
---|---|
client_id (细绳) |
您的应用程序的客户端 ID。 |
client_secret (细绳) |
您的应用程序的客户端密码。 |
grant_type (细绳) |
在此步骤中,应将其设置为 client_credentials。 |
scope (细绳) |
范围的空格分隔列表。 |
集成始终有效,但开始出现此范围错误。我们按照文档https://developer.uber.com/docs/businesses/references/api/v2/token-post请求收据并返回以下错误。我强调仪表板上的范围以及权限授予都已正确配置。
"error":"invalid_scope"</p>
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
x-uber-edge: e4-dca1:w:63
strict-transport-security: max-age=604800
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-envoy-upstream-service-time: 30
Cache-Control: max-age=0
Date: Mon, 19 Jul 2021 13:52:50 GMT
Server: ufe
Content-Length: 25
Content-Type: application/json
}
解决方案
推荐阅读
- html - 换行并忽略标签
- php - 如何读取用 php -d 覆盖的 PHP 指令?
- ruby-on-rails - 未定义的方法 `find_in_batches' 用于#
我正在尝试从具有 error_code 410 的 rpush_notifications 表中获取记录。
查询如下。
ActiveRecord::Base.connection.execute("select * from rpush_notifications where erro
- windows - 如何在使用 WebDriverWait 加载它之前识别我正在寻找的元素
- python - 在 Fastapi 中使用 SQLalchemy 进行多对多
- python - django 信号不适用于字符串变量
- amazon-web-services - 调用 CreateMultipartUpload 操作时发生错误 (AccessDenied):访问被拒绝
- c# - 即使路由存在,也没有找到该请求的候选人
- sql-server - 如何在 SQL Server 中获取两个值的最大值?
- google-cloud-platform - 如何确定您的 Google Cloud Platform 应用程序是否受 Google 高级保护计划支持?