diff options
author | Colleen Murphy <colleen@gazlene.net> | 2017-02-01 15:05:45 +0100 |
---|---|---|
committer | Colleen Murphy <colleen@gazlene.net> | 2017-02-01 19:04:14 +0100 |
commit | 1fa3ad7179c0a30ac08030509d1423c16b774d4d (patch) | |
tree | 8a2d38480db1ad188b59611693aec61ae7edf1ba /openstack_auth | |
parent | fa0994968e5ccdc50f697dfec96c3f152f219eba (diff) | |
download | django_openstack_auth-1fa3ad7179c0a30ac08030509d1423c16b774d4d.tar.gz |
Store the project domain ID in the Token object
The project domain ID is needed if a client needs to rescope a token
using the Identity V3 endpoint, so make it available.
Change-Id: I18a9d42906cb2116903600d47880ebdfff1e1ef9
Partial-bug: #1660436
Diffstat (limited to 'openstack_auth')
-rw-r--r-- | openstack_auth/user.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstack_auth/user.py b/openstack_auth/user.py index fba75e7..dce6ad9 100644 --- a/openstack_auth/user.py +++ b/openstack_auth/user.py @@ -105,6 +105,7 @@ class Token(object): project['name'] = auth_ref.project_name project['is_admin_project'] = getattr(auth_ref, 'is_admin_project', False) + project['domain_id'] = getattr(auth_ref, 'project_domain_id', None) self.project = project self.tenant = self.project |