This commit is contained in:
Luiz Costa 2024-06-03 12:03:17 +01:00
parent f966cfaa77
commit 7cbe7d92b4

View File

@ -22,6 +22,7 @@ def create_session(doc, protocol):
'password': guaca_config.get_password('guacamole_pass') 'password': guaca_config.get_password('guacamole_pass')
} }
response = requests.post(guacamole_url, data=auth) response = requests.post(guacamole_url, data=auth)
print(f"Response CODE: {response.status_code}\nResponde Content: {response.text}")
if response.status_code == 200: if response.status_code == 200:
try: try:
token = response.json()['authToken'] token = response.json()['authToken']