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_BASE_URL}}/v3/auth/tokens
request:
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "tester",
"domain": { "id": "default" }, "password": "testing"
}
}
},
"scope": "unscoped"
}
}
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: BASE_URL} }/v3/auth/ tokens
"password" : "testing"
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 BASE_URL} }/v3/auth/ projects
url: {{KEYSTONE_
request:
header:
X-Auth-Token: token_id
response: key:5000/ v3/auth/ projects",
"is_ domain" : false,
"descripti on": "",
"links" : {
"self" : "http:// key:5000/ v3/projects/ 5e9609787c46401 18e8e007a25b30e 4c"
"enabled" : true, 118e8e007a25b30 e4c",
"parent_ id": "default",
"domain_ id": "default",
"is_ domain" : false,
"descripti on": "",
"links" : {
"self" : "http:// key:5000/ v3/projects/ fb7822bd49614bd 8bbaf133576e3e3 24"
"enabled" : true, d8bbaf133576e3e 324",
"parent_ id": "default",
"domain_ id": "default",
{
"links": {
"self": "http://
"previous": null,
"next": null
},
"projects": [
{
},
"tags": [],
"id": "5e9609787c4640
"name": "test"
},
{
},
"tags": [],
"id": "fb7822bd49614b
"name": "test2"
}
]
}
3 BASE_URL} }/v3/auth/ tokens
url: {{KEYSTONE_
request:
"methods" : [
"token"
"token" : {
"id": "'token_id"
"project" : {
"name" : "test",
"domain" : {"id":"default"}
body:
{
"auth": {
"identity": {
],
}
},
"scope": {
}
}
}
}
response:
body:
{
"error": {
"message": "The request you have made requires authentication.",
"code": 401,
"title": "Unauthorized"
}
}