Update federated user display name with shadow_users_api
When a user comes to the cloud for the first time, a shadow user is
created. When the user authenticates again, this shadow user is
fetched and returned. Before it is returned, its display name should
be updated. But the call to update the display name fails because
neither identity manager nor identity drivers have the required
method. However, the required method exists in shadow_users_api.
The issue was hidden because method shadow_federated_user was
cached and while the cache lived, the user could authenticate.
Use the method of shadow_user_api instead of identity_api to update
federated user display name.
Change-Id: I58e65bdf3a953f3ded485003939b81f908738e1e
Closes-Bug: 1566282
(cherry picked from commit 7ad4f8728cce354617b5facefe5076d65af311c6)
Reviewed: https:/ /review. openstack. org/301878 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=3e5fca06c6b 7dd6060721faa39 428b133edd10f0
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 3e5fca06c6b7dd6 060721faa39428b 133edd10f0
Author: Boris Bobrov <email address hidden>
Date: Tue Apr 5 18:50:48 2016 +0300
Update federated user display name with shadow_users_api
When a user comes to the cloud for the first time, a shadow user is
created. When the user authenticates again, this shadow user is
fetched and returned. Before it is returned, its display name should
be updated. But the call to update the display name fails because
neither identity manager nor identity drivers have the required
method. However, the required method exists in shadow_users_api.
The issue was hidden because method shadow_ federated_ user was
cached and while the cache lived, the user could authenticate.
Use the method of shadow_user_api instead of identity_api to update
federated user display name.
Change-Id: I58e65bdf3a953f 3ded485003939b8 1f908738e1e 617b5facefe5076 d65af311c6)
Closes-Bug: 1566282
(cherry picked from commit 7ad4f8728cce354