curl -X GET http://localhost:5001/tokens/1c65ac0b-3649-4f60-afb5-817dea8d571f -H "X-Auth-Token: 63c548c4-aac5-4447-936c-95fb55084884" -H "Accept: application/xml"
<access xmlns="http://docs.openstack.org/identity/api/v2.0"><token expires="2011-09-30T15:15:39.758240" id="1c65ac0b-3649-4f60-afb5-817dea8d571f">
Issue 1:
<tenant name="project-y" id="3"/></token>
<user username="admin" id="3" tenantId="None">
tenantId => None is returned.If value is empty nothing should be returned.
<roles xmlns="http://docs.openstack.org/identity/api/v2.0"><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="3" name="Member" tenantId="3"/><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="1" name="Admin"/></roles></user></access>
Issue 2:
curl -X POST http://localhost:5000/tokens -d "<?xml version='1.0' encoding='UTF-8'?><auth xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://docs.openstack.org/identity/api/v2.0' tenantId='3'> <token id='63c548c4-aac5-4447-936c-95fb55084884'/></auth>" -H "Content-type: application/xml" -H "Accept: application/json"
<access xmlns="http://docs.openstack.org/identity/api/v2.0">
<token expires="2011-09-30T15:15:39.758240" id="1c65ac0b-3649-4f60-afb5-817dea8d571f"/> => XML doesnt return tenant id as a part of Token.
The json call does return.
<user name="admin" id="3"><roles xmlns="http://docs.openstack.org/identity/api/v2.0"><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="3" name="Member" tenantId="3"/><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="1" name="Admin"/></roles></user><serviceCatalog><service type="identity-service" name="identity"><endpoint region="RegionOne" internalURL="http://127.0.0.1:5000/v2.0" publicURL="http://keystone.publicinternets.com/v2.0" adminURL="http://127.0.0.1:5001/v2.0"/></service></serviceCatalog></access>
This report is quite old, and both of the above issues have been fixed & released.