Getting error 401 when use get token by token method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
New
|
Undecided
|
Seyed Milad Hashemi |
Bug Description
I have scenario that first I authenticate user with username and password with explicit unscoped and receive a token.
By using the token I request user projects list and getting projects id, then at last using one of project id and unscoped token I want to get project scoped token.
This scenario happens with three api call:
1
url: {{KEYSTONE_
request:
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "tester",
"domain": { "id": "default" },
}
}
},
"scope": "unscoped"
}
}
response:
header:
X-Subject-Token : token_id
2
url: {{KEYSTONE_
request:
header:
X-Auth-Token: token_id
response:
{
"links": {
"self": "http://
"previous": null,
"next": null
},
"projects": [
{
},
"tags": [],
"id": "5e9609787c4640
"name": "test"
},
{
},
"tags": [],
"id": "fb7822bd49614b
"name": "test2"
}
]
}
3
url: {{KEYSTONE_
request:
body:
{
"auth": {
"identity": {
],
}
},
"scope": {
}
}
}
}
response:
body:
{
"error": {
"message": "The request you have made requires authentication.",
"code": 401,
"title": "Unauthorized"
}
}
description: | updated |
description: | updated |
I make mistake at HTTP request method!