(self)
| 79 | return self.full_config["tunnel"] |
| 80 | |
| 81 | def get_token(self): |
| 82 | creds = self.get_credentials_json() |
| 83 | token_dict = {"a": creds["AccountTag"], "t": creds["TunnelID"], "s": creds["TunnelSecret"]} |
| 84 | token_json_str = json.dumps(token_dict) |
| 85 | return base64.b64encode(token_json_str.encode('utf-8')) |
| 86 | |
| 87 | def get_credentials_json(self): |
| 88 | with open(self.credentials_file) as json_file: |