From 759a9a5f591d85f9dbd6ae1eed8f1ff1e5799d06 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Sun, 10 Feb 2019 21:34:36 +0100 Subject: [PATCH] Expose application credentials in AccessInfoV3 Since application credentials are used in some tokens it is important to expose those attributes in the AccessInfoV3 object in the same way we expose other token data. Change-Id: I36a0b8dd275df8fcee556ed305c34c16a90384e8 --- keystoneauth1/access/access.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/keystoneauth1/access/access.py b/keystoneauth1/access/access.py index a918aaed..37e0bd32 100644 --- a/keystoneauth1/access/access.py +++ b/keystoneauth1/access/access.py @@ -733,6 +733,14 @@ class AccessInfoV3(AccessInfo): def trustor_user_id(self): return self._trust['trustor_user']['id'] + @property + def application_credential(self): + return self._data['token']['application_credential'] + + @_missingproperty + def application_credential_id(self): + return self._data['token']['application_credential']['id'] + @property def _oauth(self): return self._data['token']['OS-OAUTH1']