是否在Auth0中弃用了委托?

时间:2017-10-31 03:54:41

标签: oauth oauth-2.0 auth0 auth0-delegated-admin

我尝试POST到Auth0委派URL以获取访问令牌并获得"不允许授权类型"错误如下所示。 (这是使用Postman时。)

我在论坛中发现了一个在Auth0中弃用的帖子。任何人都可以确认这是否是问题,如果我尝试了不再可用的东西?

请求:

Content-Type: 'application/json'

{
  "client_id":   "ID",
  "grant_type":  "urn:ietf:params:oauth:grant-type:jwt-bearer",
  "id_token":    "TOKEN",
  "target":      "lwTL1rYVfC0KsBUFPeKWY3HvGjbIgdDM",
  "api_type":    "salesforce_api",
  "scope":       "openid"
}

错误:

{
"error": "unauthorized_client",
"error_description": "Grant type 'http://auth0.com/oauth/legacy/grant-type/delegation/id_token' not allowed for the client.",
"statusCode": 403,
"error_uri": "https://auth0.com/docs/clients/client-grant-types"
}

相关问题:

"Missing grant-type parameter" in Auth0 Delegation endpoint call

在该问题中,使用Postman以相同的请求调用端点会导致不同的错误!

0 个答案:

没有答案