Openstack's authentication api with Python

asked 2014-03-20 10:37:17 -0600

HachDev gravatar image

updated 2014-03-20 10:37:47 -0600

how can i use Openstack's authentication api with Python gettin always the same error 401 (im tryin to acces Keystone with Python program and i need to post some credentials)

edit retag flag offensive close merge delete


Please post the code that you are trying. keystoneclient uses keystone api. If you need reference, you can look at the code in keystoneclient project

Haneef Ali gravatar imageHaneef Ali ( 2014-03-20 10:49:11 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-20 10:50:03 -0600

updated 2014-03-20 11:19:31 -0600

I done this with Python locally, here is a snip of code using v2.0 auth with

from keystoneclient.v2_0 import client
keystone = client.Client(username="admin", password="Password_here", tenant_name="Admin", auth_url="")

this will get you in, then you need to do what ever it is you wanting to do.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-03-20 10:37:17 -0600

Seen: 105 times

Last updated: Mar 20 '14