summaryrefslogtreecommitdiff
path: root/keystone/revoke/core.py
diff options
context:
space:
mode:
authorLance Bragstad <lbragstad@gmail.com>2018-02-14 19:40:17 +0000
committerLance Bragstad <lbragstad@gmail.com>2018-02-16 21:40:07 +0000
commitc7658abfd644477e1adfbf1c1ab342f0dcd869e6 (patch)
tree16d1adc78585e334b4e1403a8c42983f8c92f4f9 /keystone/revoke/core.py
parentdb91bfc8c8b0a9650ef2aae0497db9c941dd207e (diff)
downloadkeystone-c7658abfd644477e1adfbf1c1ab342f0dcd869e6.tar.gz
Simplify token persistence callbacks
The INVALIDATE_USER_TOKEN_PERSISTENCE and INVALIDATE_USER_PROJECT_TOKEN_PERSISTENCE callbacks were meant to clean up invalid tokens from the token storage layer. Now that the sql token driver has been removed, we don't need them any more. This commit removes those notifications and refactors the places where notifications are still needed, making them more specific and not eluding to token persistence. This commit also removes a significant amount of logic from the assignment API that used to notify the token API when assignments were deleted. This made sense when tokens were written to disk because there was an opportunity to invalidate them when users were removed from projects. This is no longer needed since we do validation online and we don't persist tokens anymore. Change-Id: I100b7416e8ba61eb4ea2c2eb4962e952a53ea388
Diffstat (limited to 'keystone/revoke/core.py')
-rw-r--r--keystone/revoke/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/revoke/core.py b/keystone/revoke/core.py
index 67765338a..c9f16a40d 100644
--- a/keystone/revoke/core.py
+++ b/keystone/revoke/core.py
@@ -88,7 +88,7 @@ class Manager(manager.Manager):
['user', self._user_callback]
],
notifications.ACTIONS.internal: [
- [notifications.INVALIDATE_USER_TOKEN_PERSISTENCE,
+ [notifications.PERSIST_REVOCATION_EVENT_FOR_USER,
self._user_callback],
]
}