Ask Your Question
0

Openstack's authentication api with Python

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

HachDev gravatar image

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

how can i use Openstack's authentication api with Python plzz..im 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

Comments

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 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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

I done this with Python locally, here is a snip of code using v2.0 auth with http://example.com:5000/v2.0

from keystoneclient.v2_0 import client
keystone = client.Client(username="admin", password="Password_here", tenant_name="Admin", auth_url="http://api-example.client.acme.net:5000/v2.0")

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 50 times

Last updated: Mar 20 '14