<div dir="ltr">Hi,<div><br></div><div>I need a way to access cinder apis using auth-token. I used below API to get the cinder client and tried getting the availability zones.</div><div><br></div><div><br></div><div>cinder_client = cc.Client(1, auth_token=self.ctxt.auth_token,<br></div><div><div><div>                                     project_id=self.ctxt.tenant,</div><div>                                      auth_url=self.ctxt.auth_url)</div><div>cinder_client.availability_zones.list()<br></div><div><br></div><div>But authentication fails with the exception:</div>"cinderclient.exceptions.BadRequest: Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400)"<div><br></div></div></div><div>It works fine when I use username and api_key instead of auth_token</div><div><br></div><div>cinder_client = cc.Client(1, username="admin", api_key="XXXXX",<br></div><div><div>                          project_id="admin",</div><div>                          auth_url="<a href="http://X.X.X.X:5000/v2.0">http://X.X.X.X:5000/v2.0</a>")</div><div>cinder_client.availability_zones.list()<br></div><div><br></div></div><div>Please help me with a means of using cinder apis with auth_token.</div><div><br></div><div>Thanks,</div><div>Kanthi</div></div>