Add new config option reauthentication_auth_plugin
for enforce usage of trusts_auth_plugin for making
authenticated requests.
Also add stale_token_duration option for determing
time in seconds before token expiration for considering
such token as about to expire.
Try to get new token if old token is about to expire.
Add reauthentication for stack create/update actions.
Change-Id: Id7d6692128964f4ef35762d43ef2738df0d83f4b
Co-Authored-By: Steven Hardy <email address hidden>
Closes-Bug: #1306294
(cherry picked from commit 33bf717bbcdbdf5db47dc54f10ed1e33fdb0e5c9)
Reviewed: https:/ /review. openstack. org/252313 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=4d4846e192f 51263a3c5849b4f b3dcaffcfa73af
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 4d4846e192f5126 3a3c5849b4fb3dc affcfa73af
Author: Oleksii Chuprykov <email address hidden>
Date: Tue Nov 10 17:15:59 2015 +0200
Reauthenticate on token expiration
Add new config option reauthenticatio n_auth_ plugin duration option for determing
for enforce usage of trusts_auth_plugin for making
authenticated requests.
Also add stale_token_
time in seconds before token expiration for considering
such token as about to expire.
Try to get new token if old token is about to expire.
Add reauthentication for stack create/update actions.
Change-Id: Id7d6692128964f 4ef35762d43ef27 38df0d83f4b db47dc54f10ed1e 33fdb0e5c9)
Co-Authored-By: Steven Hardy <email address hidden>
Closes-Bug: #1306294
(cherry picked from commit 33bf717bbcdbdf5