Skip to content

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

Description

@catinthesky

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions