Merge "Expose application credentials in AccessInfoV3"

This commit is contained in:
Zuul 2019-02-23 00:38:20 +00:00 committed by Gerrit Code Review
commit e155bed14e
1 changed files with 8 additions and 0 deletions

View File

@ -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']