Cannot create scoped token from openid unscoped token - authenticate_for_token() got an unexpected keyword argument 'scope'
Hello
Running mitaka keystone.
I manage to get an openid (google) backed keystone token but I cannot seem to get a scoped token from this.
curl -H "Content-type:application/json" -d '
{
"auth": {
"identity": {
"methods": [
"token"
],
"token": {
"id": "gAAAAA...AcZfhUFoBs"
}
}
},
"scope": {
"project": {
"id": "dae57b1f27f7456a995c7ab784f2c060",
"domain": { "id": "e4de7fbf3e9d4a9d9a5a3a43d6690d58" }
}
}
}' http://localhost:5000/v3/auth/tokens
returns
{"error": {"message": "authenticate_for_token() got an unexpected keyword argument 'scope'", "code": 400, "title": "Bad Request"}}
Similar reports indicate a missing domain, but as far as I can see, I did add it.
Tried combinations of id and name for project and domain but always get the same result
I can use the token to list projects and domains using http://localhost:5000/v3/domains and http://localhost:5000/v3/projects
keystone log says
2016-06-26 08:49:42.880 15257 DEBUG keystone.middleware.auth [req-1f6792a4-a920-40af-b8e5-fab418cc33b5 - - - - -] There is either no auth token in the request or the certificate issuer is not trusted. No auth context will be set. _build_auth_context /usr/lib/python2.7/dist-packages/keystone/middleware/auth.py:71
2016-06-26 08:49:42.881 15257 INFO keystone.common.wsgi [req-1f6792a4-a920-40af-b8e5-fab418cc33b5 - - - - -] POST http://localhost:5000/v3/auth/tokens
2016-06-26 08:49:42.882 15257 ERROR keystone.common.wsgi [req-1f6792a4-a920-40af-b8e5-fab418cc33b5 - - - - -] authenticate_for_token() got an unexpected keyword argument 'scope'
2016-06-26 08:49:42.882 15257 ERROR keystone.common.wsgi Traceback (most recent call last):
2016-06-26 08:49:42.882 15257 ERROR keystone.common.wsgi File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 249, in __call__
2016-06-26 08:49:42.882 15257 ERROR keystone.common.wsgi result = method(context, **params)
2016-06-26 08:49:42.882 15257 ERROR keystone.common.wsgi TypeError: authenticate_for_token() got an unexpected keyword argument 'scope'
2016-06-26 08:49:42.882 15257 ERROR keystone.common.wsgi
All tips warmly welcomed
Tx!
Peter