From eca9c9149406904d49205a93218a3dad3206d82a Mon Sep 17 00:00:00 2001 From: George Melikov Date: Tue, 9 Apr 2019 17:53:57 +0300 Subject: [PATCH] Remove token object from credentials Token is not used in policies, and json.dumps can't dump it when http rules are used. Closes-Bug: 1823977 Change-Id: Id1b0b94d27d24d7dfdd2f1542973088947d83ada Signed-off-by: George Melikov --- openstack_auth/policy.py | 1 - 1 file changed, 1 deletion(-) diff --git a/openstack_auth/policy.py b/openstack_auth/policy.py index 75329dd111..e8cc6d2dda 100644 --- a/openstack_auth/policy.py +++ b/openstack_auth/policy.py @@ -207,7 +207,6 @@ def _user_to_credentials(user): if not hasattr(user, "_credentials"): roles = [role['name'] for role in user.roles] user._credentials = {'user_id': user.id, - 'token': user.token, 'username': user.username, 'project_id': user.project_id, 'tenant_id': user.project_id,