Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openclient when used in web app, the token would get expirated that make the authentication failed for openstack. #32

Open
catinthesky opened this issue Jan 12, 2015 · 0 comments

Comments

@catinthesky
Copy link

Hello,

In using node.js openclient module in web app, there is a problem concerning the openstack authentication, that is, when the token got from openclient it will be used even after it is considered expiated in the openstack side, (I figure, the code should be in this file "/openclient/client/base.js" concerning the token assignment), the problem contents is as below shown, please have a check if this really needing openclient side library code change:

REQ: POST http://:5000/v2.0/tokens
Content-Type: application/json
Accept: application/json
X-Requested-With: js-openclient
X-Auth-Token: 8e780712158379145d69497b2c50734e
body: {"auth":{"passwordCredentials":{"username":"admin","password":"
****"}}

RES: POST http://:5000/v2.0/tokens
status: 401
www-authenticate: Keystone uri="http://
:5000"
vary: X-Auth-Token
content-type: application/json
content-length: 114
date: Mon, 12 Jan 2015 07:39:18 GMT
connection: close

body: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant