wso2没有在响应中返回refresh_token

时间:2018-03-01 14:50:03

标签: oauth-2.0 wso2 wso2-am refresh-token

以下是令牌请求。

auto nodeToAdd = loadCcbAsNode("fileccb.ccbi").get();

for (size_t i = 1; i < 10; i++)
{
    listView->addChild(nodeToAdd);       // it's cocos2d::ui::ListView
                                         // which i load to scene
}

我没有在响应中获得刷新令牌

    curl -X POST \
  https://172.17.0.1:9443/oauth2/token \
  -H 'Authorization: Basic dXF0c0hnVUp2dnU5X1BDdVEyTjI5dDRqRjA0YTozb1IzYllmN2gxOVBMYmZiTElnR25xNllkQjBh' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Postman-Token: f7ffb7f5-c78d-4931-81e1-a3266da68578' \
  -d grant_type=client_credentials

Wso2am版本2.1.0

1 个答案:

答案 0 :(得分:2)

在客户端凭据授予类型中,不包括刷新令牌。它在规范[1]中提到如下。

不应包括刷新令牌。

如果您需要刷新令牌,则应使用其他授权类型。

[1] https://tools.ietf.org/html/rfc6749#section-4.4.3