yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #03231
[Bug 1174844] Re: DELETE /v2.0/tokens/{token_id} should remove token from token backend
ayoung looks to be correct
** Changed in: keystone
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1174844
Title:
DELETE /v2.0/tokens/{token_id} should remove token from token backend
Status in OpenStack Identity (Keystone):
Invalid
Bug description:
DELETE should remove a token from the token backend
right now the token remains after DELETE
vagrant@precise32:~$ curl -i -H "X-Auth-Token: 6a84b8dce32445c6934523eaca9f9cce" http://10.0.2.15:8080/v1/AUTH_57bf975da2b14b039f16e75a1c841e7a
HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Timestamp: 1366997817.13234
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
Content-Type: text/html; charset=UTF-8
X-Account-Object-Count: 0
X-Trans-Id: txda6f94e95fcb4f8cbf0eb77dc017e6a4
Date: Tue, 30 Apr 2013 16:41:15 GMT
vagrant@precise32:~$ vi /etc/keystone/keystone.conf
vagrant@precise32:~$ curl -X DELETE -i -H "X-Auth-Token: f6ac1d40d8a26e6adb06" http://localhost:5000/v2.0/tokens/6a84b8dce32445c6934523eaca9f9cce
HTTP/1.1 204 No Content
Vary: X-Auth-Token
Content-Length: 0
Date: Tue, 30 Apr 2013 16:43:01 GMT
vagrant@precise32:~$ curl -i -H "X-Auth-Token: 6a84b8dce32445c6934523eaca9f9cce" http://10.0.2.15:8080/v1/AUTH_57bf975da2b14b039f16e75a1c841e7a
HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Timestamp: 1366997817.13234
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
Content-Type: text/html; charset=UTF-8
X-Account-Object-Count: 0
X-Trans-Id: tx046a6a707e2d43b7b2dddbef5665da8f
Date: Tue, 30 Apr 2013 16:43:06 GMT
vagrant@precise32:~$ curl -i -H "X-Auth-Token: 6a84b8dce32445c6934523eaca9f9cce" http://10.0.2.15:8080/v1/AUTH_57bf975da2b14b039f16e75a1c841e7a
HTTP/1.1 204 No Content
Content-Length: 0
Accept-Ranges: bytes
X-Timestamp: 1366997817.13234
X-Account-Bytes-Used: 0
X-Account-Container-Count: 0
Content-Type: text/html; charset=UTF-8
X-Account-Object-Count: 0
X-Trans-Id: txb756873ade1043a692c6bddd905dfe23
Date: Tue, 30 Apr 2013 16:43:11 GMT
After waiting more than 1 minute:
vagrant@precise32:~$ curl -i -H "X-Auth-Token: 6a84b8dce32445c6934523eaca9f9cce" http://10.0.2.15:8080/v1/AUTH_57bf975da2b14b039f16e75a1c841e7a
HTTP/1.1 401 Unauthorized
Content-Length: 131
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx9dd0ec4841dc4287b5468aa19eeb405f
Date: Tue, 30 Apr 2013 17:01:16 GMT
<html><h1>Unauthorized</h1><p>This server could not verify that you
are authorized to access the document you requested.</p></html>
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1174844/+subscriptions