"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/models/revoke_model.py" between
keystone-18.0.0.tar.gz and keystone-19.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 "Wallaby" series (latest release).

revoke_model.py  (keystone-18.0.0):revoke_model.py  (keystone-19.0.0)
skipping to change at line 166 skipping to change at line 166
token token
:returns: True if the token matches the revocation event, indicating the :returns: True if the token matches the revocation event, indicating the
token has been revoked token has been revoked
""" """
# If any one check does not match, the whole token does # If any one check does not match, the whole token does
# not match the event. The numerous return False indicate # not match the event. The numerous return False indicate
# that the token is still valid and short-circuits the # that the token is still valid and short-circuits the
# rest of the logic. # rest of the logic.
# The token has two attributes that can match the domain_id. # The token has two attributes that can match the domain_id.
if event.domain_id is not None and event.domain_id not in( if event.domain_id is not None and event.domain_id not in (
token_values['identity_domain_id'], token_values['identity_domain_id'],
token_values['assignment_domain_id'],): token_values['assignment_domain_id'],):
return False return False
if event.domain_scope_id is not None and event.domain_scope_id not in ( if event.domain_scope_id is not None and event.domain_scope_id not in (
token_values['assignment_domain_id'],): token_values['assignment_domain_id'],):
return False return False
# If an event specifies an attribute name, but it does not match, the token # If an event specifies an attribute name, but it does not match, the token
# is not revoked. # is not revoked.
 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)