Ask Your Question
0

Is there a way to retrieve a user's credentials?

asked 2014-05-18 00:05:15 -0500

akakios gravatar image

I'm on Icehouse/Ubuntu 14.04 and have been looking into how to retrieve a user's credentials. This will be used to ensure that sessions in the application we are making will be continuous. When the token expiration will be near, we will revoke the token and re-login the user to obtain a new token. This is where the problem lies. Although the API reference exposes it, it doesn't seem to be usable(https://bugs.launchpad.net/openstack-api-site/+bug/1278847). Is this at all possible via the API?

edit retag flag offensive close merge delete

Comments

Password is stored as one way hash. No way you can retrieve password. That is for other types of credentials such as EC2. BTW they are Rackspace extension apis. I believe Rackspace used them for storing EC2 and access/secretKey credentials

Haneef Ali gravatar imageHaneef Ali ( 2014-05-19 23:35:43 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-05-19 11:40:43 -0500

What type of credential? If it is username/password then NO. I believe credential api is used only for stroring EC2 credential.

edit flag offensive delete link more

Comments

If that is the case, I'll have to find another way to extend the token expiration. Asked a more relevant question here: https://ask.openstack.org/en/question/31563/how-to-do-api-token-renewalor-expiration-extension/ (How to do api token renewal(or expiration extension))

akakios gravatar imageakakios ( 2014-06-06 07:10:10 -0500 )edit
0

answered 2014-05-19 12:30:46 -0500

rubicon gravatar image

Im not exactly sure how you mean but maybe this is of any relevance:

"Authenticate by exchanging credentials for an access token:"

$ curl -d '{"auth":{"tenantName": "customer-x", "passwordCredentials": {"username": "joeuser", "password": "secrete"}}}' -H "Content-type: application/json" http://localhost:35357/v2.0/tokens

Basically you use curl to call the API and authenticate, in return when issuing this command with the proper settings you will have a JSON string returned with the service catalog and the API endpoints along with the token-id that has been issued to access the services.

edit flag offensive delete link more

Comments

Hi rubicon, I was meaning to retrieve the password credentials.

akakios gravatar imageakakios ( 2014-06-06 06:46:51 -0500 )edit

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-05-18 00:05:15 -0500

Seen: 143 times

Last updated: May 19 '14