Don't persist rev event when deleting access token

This is no longer needed since the token provider API will
rebuild the token context at validation time. The revocation event
is not needed and we no longer need to store it.

Change-Id: I4dc766981a29b0afd0a44718c1c5d81155163982
partial-bug: 1671887
This commit is contained in:
Ubuntu 2017-03-20 15:24:30 +00:00 committed by Richard Avelar
parent 2da47afd8b
commit 9f8e412e49
1 changed files with 0 additions and 6 deletions

View File

@ -107,11 +107,6 @@ class Manager(manager.Manager):
self.revoke(
revoke_model.RevokeEvent(consumer_id=payload['resource_info']))
def _access_token_callback(self, service, resource_type, operation,
payload):
self.revoke(
revoke_model.RevokeEvent(access_token_id=payload['resource_info']))
def _role_assignment_callback(self, service, resource_type, operation,
payload):
info = payload['resource_info']
@ -124,7 +119,6 @@ class Manager(manager.Manager):
notifications.ACTIONS.deleted: [
['OS-TRUST:trust', self._trust_callback],
['OS-OAUTH1:consumer', self._consumer_callback],
['OS-OAUTH1:access_token', self._access_token_callback],
['role', self._role_callback],
['user', self._user_callback],
['project', self._project_callback],