"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/federation/core.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Ussuri" series (latest release).

core.py  (keystone-16.0.1):core.py  (keystone-17.0.0)
skipping to change at line 184 skipping to change at line 184
def delete_protocol(self, idp_id, protocol_id): def delete_protocol(self, idp_id, protocol_id):
hints = driver_hints.Hints() hints = driver_hints.Hints()
hints.add_filter('protocol_id', protocol_id) hints.add_filter('protocol_id', protocol_id)
shadow_users = PROVIDERS.shadow_users_api.list_federated_users_info( shadow_users = PROVIDERS.shadow_users_api.list_federated_users_info(
hints) hints)
self.driver.delete_protocol(idp_id, protocol_id) self.driver.delete_protocol(idp_id, protocol_id)
for shadow_user in shadow_users: for shadow_user in shadow_users:
PROVIDERS.identity_api.shadow_federated_user.invalidate( PROVIDERS.identity_api._shadow_federated_user.invalidate(
PROVIDERS.identity_api, shadow_user['idp_id'], PROVIDERS.identity_api, shadow_user['idp_id'],
shadow_user['protocol_id'], shadow_user['unique_id'], shadow_user['protocol_id'], shadow_user['unique_id'],
shadow_user['display_name'], shadow_user['display_name'],
shadow_user.get('extra', {}).get('email')) shadow_user.get('extra', {}).get('email'))
def update_protocol(self, idp_id, protocol_id, protocol): def update_protocol(self, idp_id, protocol_id, protocol):
self._validate_mapping_exists(protocol['mapping_id']) self._validate_mapping_exists(protocol['mapping_id'])
return self.driver.update_protocol(idp_id, protocol_id, protocol) return self.driver.update_protocol(idp_id, protocol_id, protocol)
def _validate_mapping_exists(self, mapping_id): def _validate_mapping_exists(self, mapping_id):
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)