← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1690203] Re: token data doesn't have roles, projects and catalog information

 

** Also affects: keystone
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1690203

Title:
  token data doesn't have roles, projects and catalog information

Status in OpenStack Identity (keystone):
  New
Status in keystoneauth:
  New

Bug description:
  Token which is generated using keystoneauth1.session.get/post doesn't
  have roles, project and catalog information.

  >>> from keystoneauth1 import session
  >>> from keystoneauth1 import identity
  >>> auth = identity.v3.Token('https://localhost:5000/v3', 'gAAAAABZFFOeoAYgNRrCDav6UHGM1Zo63kVk4V2mZ_7D41eCdiJUjw8xzo7eJxJR2vAxRaVljc_OUEErrmU9FsTh6OJi01w9D5hc-pAZPlHzZm-fmExPrEHUZQ1Uz9BI31UpDq_iNg4Im2m1cU8xiBdcUpJZeYKh6gxvL95MMlnttCle5u9y15UDB0I2QY2Sy1LEQ9UoEXVO4wk5M4KgOhVRdF36hEY8dpeH0Zo-MB6N6LqiNvHCWko')
  >>> s = session.Session(auth=auth, verify=False)
  >>> resp = s.get('http://localhost:9292/v2/images', headers={'Accept': 'application/json'})
  >>> resp
  <Response [200]>

  >>> resp.request.headers
  {'Connection': 'keep-alive', 'X-Auth-Token': 'gAAAAABZFFPxqrUAkNLOCDGalLVzYutnQoFXlAyCHuSbqOQPzzuFposxT806oJ3WUXd4gTnDkXNFVXCT10gd3fdVHBkIOqlI2pVh_Fba29FKz8knMRwXGaZaRCeZrnbbGGJsDHMlbLhXB11NM5iEKBHrhXQkWrFSHdfG7IyF00XLiFh2ag3hMICBQKSkenr--Wv3OosLuvFErzsQiKC-HYu04EqOSyiDNc9vRs0OIr9pNynF65NCyPM', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'User-Agent': 'keystoneauth1/2.18.0 python-requests/2.10.0 CPython/2.7.5'}

  GET /v3/auth/tokens
  X-Subject-Token: gAAAAABZFFPxqrUAkNLOCDGalLVzYutnQoFXlAyCHuSbqOQPzzuFposxT806oJ3WUXd4gTnDkXNFVXCT10gd3fdVHBkIOqlI2pVh_Fba29FKz8knMRwXGaZaRCeZrnbbGGJsDHMlbLhXB11NM5iEKBHrhXQkWrFSHdfG7IyF00XLiFh2ag3hMICBQKSkenr--Wv3OosLuvFErzsQiKC-HYu04EqOSyiDNc9vRs0OIr9pNynF65NCyPM
  X-Auth-Token:
  gAAAAABZFFOeoAYgNRrCDav6UHGM1Zo63kVk4V2mZ_7D41eCdiJUjw8xzo7eJxJR2vAxRaVljc_OUEErrmU9FsTh6OJi01w9D5hc-pAZPlHzZm-fmExPrEHUZQ1Uz9BI31UpDq_iNg4Im2m1cU8xiBdcUpJZeYKh6gxvL95MMlnttCle5u9y15UDB0I2QY2Sy1LEQ9UoEXVO4wk5M4KgOhVRdF36hEY8dpeH0Zo-MB6N6LqiNvHCWko

  Response:
  {"token": {"issued_at": "2017-05-11T12:07:13.000000Z", "audit_ids": ["_0-Hir4UTS-ATQmbiOP0Wg", "Zh4SNR-jREugwuoxGXL4wg"], "user": {"id": "0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9", "domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "root"}, "expires_at": "2017-05-11T18:05:50.000000Z", "methods": ["token", "password"]}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1690203/+subscriptions


References