I could not understand what the difference of X-Auth-Token and X-Subject-Token is. I read in the documentation that "X-Auth-Token is a valid authentication token for an administrative user" and I think X-Subject-Token is the authentication token which we want to validate. However, I wonder whether they both generated in the same way or not. Is it correct to say that both of them are token and the only things that differ is we know X-Auth-Token is validated and we do not know X-Subject-Token is validated or not? I would like to validate my token. I generated two token via "Token authentication with unscoped authorization" openstack api. Then, I sent a request to "validate and show information for token" openstack api. I passed nothing as a data, I set header like below:
'Content-Type: application/json',
'X-Auth-Token: first_token',
'X-Subject-Token: second_token'
It says the request you have made requires authentication. In the case that I pass data like below, I get request time out error.
"auth" : {
"identity" : {
"methods" : ["token"],
"token" => {
"id" : first_token
}
}
}
What should I do?