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:
parent
b65c9c0e57
commit
eca9c91494
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user