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
This commit is contained in:
parent
299bebc14d
commit
759a9a5f59
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue