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.
Reviewed: https:/ /review. openstack. org/299136 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=2561e4061c3 75982fd056af583 233c4c658b139e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2561e4061c37598 2fd056af583233c 4c658b139e
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: Ifebe9011870bbd dc46fc6d6a26563 641d5559e97
Closes-Bug: #1563495