Ask Your Question

priti-desai's profile - activity

2014-07-11 06:47:39 -0500 received badge  Famous Question (source)
2014-04-02 01:17:27 -0500 received badge  Notable Question (source)
2014-03-31 01:31:21 -0500 received badge  Popular Question (source)
2014-03-28 12:41:09 -0500 commented answer Is there a REST API to retrieve token id (id column from token table) of an PKI token?
2014-03-27 19:47:27 -0500 received badge  Nice Question (source)
2014-03-27 17:51:16 -0500 answered a question Is there a REST API to retrieve token id (id column from token table) of an PKI token?

I am using Havana Stable where keystone does not encode token_id if token is in PKI. Havana is missing this if statement:

if isinstance(token_id, six.text_type):
            token_id = token_id.encode('utf-8')

https://github.com/openstack/keystone...

if is_ans1_token(token_id):
        hasher = hashlib.md5()
        hasher.update(token_id)
        return hasher.hexdigest()

Is it possible to backport these changes into Havana?

2014-03-27 16:27:47 -0500 received badge  Student (source)
2014-03-27 14:32:38 -0500 asked a question Is there a REST API to retrieve token id (id column from token table) of an PKI token?

When a PKI token is generated while authenticating user with his credentials, the HTTP response does not contain token id as it appears in Token table in Keystone database. When token format is UUID, token id is exactly similar to token so this use case is only applicable in case of PKI token format. This information is needed when authenticating keystone user based on preexisting token. Thanks