Without this patch, the token formatter does not have enough data to
construct a token created with an application credential. This means
that if the token cache is disabled or expired, when keystone goes to
create the token it will not find any application credential information
and will not recreate the application_credential_restricted parameter in
the token data. This patch creates a new Payload class for application
credentials so that the application credential ID is properly persisted
in the msgpack'd payload. It also adds more data to the token data
object so that the application credential ID and name as well as its
restricted status is available when the token is queried.
Reviewed: https:/ /review. openstack. org/546065 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=afca5cc43bc 2442bd95524b7ad 030d2e7965902c
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit afca5cc43bc2442 bd95524b7ad030d 2e7965902c
Author: Lance Bragstad <email address hidden>
Date: Mon Feb 19 18:23:25 2018 +0000
Populate application credential data in token
Without this patch, the token formatter does not have enough data to credential_ restricted parameter in
construct a token created with an application credential. This means
that if the token cache is disabled or expired, when keystone goes to
create the token it will not find any application credential information
and will not recreate the application_
the token data. This patch creates a new Payload class for application
credentials so that the application credential ID is properly persisted
in the msgpack'd payload. It also adds more data to the token data
object so that the application credential ID and name as well as its
restricted status is available when the token is queried.
Co-authored-by: Lance Bragstad <email address hidden>
Change-Id: I322a40404d8287 748fe8c3a8d6dc1 256d935d84a b899ca3b1db5d2a 21a4127a30)
Closes-bug: #1750415
(cherry picked from commit 796198f19670e3e