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.
Reviewed: https:/ /review. openstack. org/301795 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=7ad4f8728cc e354617b5facefe 5076d65af311c6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7ad4f8728cce354 617b5facefe5076 d65af311c6
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
Closes-Bug: 1566282