Beispiel #1
0
 def __init__(self, response):
     self.response = response
     self.receipt = response.headers.get("Openstack-Auth-Receipt")
     body = response.json()
     self.methods = body['receipt']['methods']
     self.required_auth_methods = body['required_auth_methods']
     self.expires_at = utils.parse_isotime(body['receipt']['expires_at'])
     message = "%s: %s" % (self.message, self.required_auth_methods)
     super(MissingAuthMethods, self).__init__(message)
Beispiel #2
0
 def issued(self):
     return utils.parse_isotime(self._data['token']['issued_at'])
Beispiel #3
0
 def expires(self):
     return utils.parse_isotime(self._data['token']['expires_at'])
Beispiel #4
0
 def issued(self):
     return utils.parse_isotime(self._token['issued_at'])
Beispiel #5
0
 def expires(self):
     return utils.parse_isotime(self._token.get('expires'))
Beispiel #6
0
 def issued(self):
     return _utils.parse_isotime(self.issued_str)
Beispiel #7
0
 def expires(self):
     return _utils.parse_isotime(self.expires_str)
Beispiel #8
0
 def updated(self):
     return utils.parse_isotime(self.updated_str)
Beispiel #9
0
 def expires(self):
     return utils.parse_isotime(self._data['token']['expires_at'])
Beispiel #10
0
 def issued(self):
     return utils.parse_isotime(self._data['token']['issued_at'])
Beispiel #11
0
 def issued(self):
     return utils.parse_isotime(self._token['issued_at'])
Beispiel #12
0
 def expires(self):
     return utils.parse_isotime(self._token.get('expires'))
Beispiel #13
0
 def issued(self):
     return _utils.parse_isotime(self.issued_str)
Beispiel #14
0
 def expires(self):
     return _utils.parse_isotime(self.expires_str)
Beispiel #15
0
 def updated(self):
     return utils.parse_isotime(self.updated_str)