code: def _parse_response(self, resp):
          
          access = resp["access"]
          token = access.get("token")
          self.token = token["id"]
          self.tenant_id = token["tenant"]["id"]
          self.tenant_name = token["tenant"]["name"]
          self.expires = self._parse_api_time(token["expires"])
          self.service_catalog = access.get("serviceCatalog")
          self._parse_service_catalog()
          user = access["user"]
          self.user = {}
          self.user["id"] = user["id"]
          self.username = self.user["name"] = user["name"]
          self.user["roles"] = user["roles"]
docs: Gets the authentication information from the returned JSON.