Comment 10 for bug 1563495

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-glanceclient (master)

Reviewed: https://review.openstack.org/299136
Committed: https://git.openstack.org/cgit/openstack/python-glanceclient/commit/?id=2561e4061c375982fd056af583233c4c658b139e
Submitter: Jenkins
Branch: master

commit 2561e4061c375982fd056af583233c4c658b139e
Author: kairat_kushaev <email address hidden>
Date: Wed Mar 30 08:49:24 2016 +0300

    Update auth_token before sending request

    Previously auth_token was initialized once in __init__ method.
    After that we stored token in session headers. So to refresh token
    users need to instantiate a new session inside http client or
    re-create client itself.
    In order to provide possibility to refresh token we need
    to add token header before sending the request. So users can
    just update auth_token attribute in the HTTPClient to refresh
    user token.

    Change-Id: Ifebe9011870bbddc46fc6d6a26563641d5559e97
    Closes-Bug: #1563495