From 7fef65b66b467ff3b38dad07654823bf2299a9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Aug 2020 10:25:54 +0200 Subject: [PATCH] Switch to token auth for Zammad --- rt2zammad.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rt2zammad.py b/rt2zammad.py index f63510a..facb0cf 100755 --- a/rt2zammad.py +++ b/rt2zammad.py @@ -27,9 +27,7 @@ class Tag(Resource): TEMPLATE = """{ "zammad_host": "", -"zammad_user": "", -"zammad_password": "", -"zammad_secure": true, +"zammad_token": "", "rt_url": "", "rt_user": "", "rt_pass": "" @@ -57,9 +55,7 @@ with open("rt2zammad.json") as handle: def get_zammad(**kwargs): return ZammadAPI( host=config["zammad_host"], - username=config["zammad_user"], - password=config["zammad_password"], - is_secure=config["zammad_secure"], + http_token=config["zammad_token"], **kwargs )