Fiware 如何在Cosmos中获得有效的oauth2令牌?

Fiware 如何在Cosmos中获得有效的oauth2令牌?,fiware,fiware-cosmos,Fiware,Fiware Cosmos,我的名字是: 如何在Cosmos中获得有效的oauth2令牌?一切都已解释。在请求令牌时,必须同时使用IdM用户名和密码。Cosmos密码仅用于ssh访问集群 IdM username: <IDM_USERNAME> Cosmos username: <COSMOS_USERNAME> Password: <PASSWORD> HDFS quota: 5 HDFS used: 0 Registrat

我的名字是:

如何在Cosmos中获得有效的oauth2令牌?

一切都已解释。在请求令牌时,必须同时使用IdM用户名和密码。Cosmos密码仅用于ssh访问集群

IdM username:      <IDM_USERNAME>
Cosmos username:   <COSMOS_USERNAME>
Password:          <PASSWORD>
HDFS quota:        5
HDFS used:         0
Registration time: Fri Oct 23 2015 12:59:39 GMT+0200 (CEST)
Last access time:  0000-00-00 00:00:00
curl -k -X POST "https://cosmos.lab.fiware.org:13000/cosmos-auth/v1/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&username=<IDM_USERNAME>&password=<PASSWORD>"
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}