Switch to token auth for Zammad
This commit is contained in:
parent
af589b77f2
commit
7fef65b66b
1 changed files with 2 additions and 6 deletions
|
@ -27,9 +27,7 @@ class Tag(Resource):
|
||||||
|
|
||||||
TEMPLATE = """{
|
TEMPLATE = """{
|
||||||
"zammad_host": "",
|
"zammad_host": "",
|
||||||
"zammad_user": "",
|
"zammad_token": "",
|
||||||
"zammad_password": "",
|
|
||||||
"zammad_secure": true,
|
|
||||||
"rt_url": "",
|
"rt_url": "",
|
||||||
"rt_user": "",
|
"rt_user": "",
|
||||||
"rt_pass": ""
|
"rt_pass": ""
|
||||||
|
@ -57,9 +55,7 @@ with open("rt2zammad.json") as handle:
|
||||||
def get_zammad(**kwargs):
|
def get_zammad(**kwargs):
|
||||||
return ZammadAPI(
|
return ZammadAPI(
|
||||||
host=config["zammad_host"],
|
host=config["zammad_host"],
|
||||||
username=config["zammad_user"],
|
http_token=config["zammad_token"],
|
||||||
password=config["zammad_password"],
|
|
||||||
is_secure=config["zammad_secure"],
|
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue