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 <mail@gmelikov.ru>
This commit is contained in:
George Melikov 2019-04-09 17:53:57 +03:00
parent b65c9c0e57
commit eca9c91494

View File

@ -207,7 +207,6 @@ def _user_to_credentials(user):
if not hasattr(user, "_credentials"): if not hasattr(user, "_credentials"):
roles = [role['name'] for role in user.roles] roles = [role['name'] for role in user.roles]
user._credentials = {'user_id': user.id, user._credentials = {'user_id': user.id,
'token': user.token,
'username': user.username, 'username': user.username,
'project_id': user.project_id, 'project_id': user.project_id,
'tenant_id': user.project_id, 'tenant_id': user.project_id,