opened
iampavan
username_0
If the PatchServer has an API token created, then the patch_server_updater scripts errors out.

`JSON : /Users/admin/Desktop/CiscoAnyConnectSecureMobilityClient.json
URL : https://abc.com/
CONFIG : /Users/admin/Desktop/AnyConnect.conf
Input JSON checked, seems to be OK, checking patch server access ...
Ok, https://abc.com is recheable, trying to push JSON file to the API.
Push failed, check api response here :
{
  "unauthorized": "Authentication required"
}`

I do have the API token, but how do I pass it in the script?

FYI :
If the PatchServer does not have API token generated, then the patch_server_updater scripts works fine.

`JSON : /Users/admin/Desktop/ParallelsDesktop.json
URL : https://abc.com/
CONFIG : /Users/admin/Desktop/ParallelsDesktop.conf
Input JSON checked, seems to be OK, checking patch server access ...
Ok, https://abc.com is recheable, trying to push JSON file to the API.
Push success, /Users/admin/Desktop/ParallelsDesktop.conf will be generate soon
/Users/admin/Desktop/ParallelsDesktop.conf config file generated !
patch_server_updater.sh [add] will be able to update a new version of ParallelsDesktop if you can parse a website and collect informations`
Error "unauthorized": "Authentication required"
issue
created
fabiencytadel
username_1
Hello,
thank for your message, we didn't use this option with our patch server. I will check the code to implement that soon.
comment
created
iampavan
username_0
Thank you for your quick response. Appreciate it. ☺️
comment
created
fabiencytadel
username_1
Hello !

could you test the new feature on this branch ?

https://github.com/CytadelHosting/patch_server_updater/tree/add_http_header_for_API_with_token

Thanks !
comment
created
iampavan
username_0
Hey hey!
Tested. Works perfectly fine.

Thank you.
comment
created
iampavan
username_0
comment
created
fabiencytadel
username_1
Hello Pavan, don't worry, i'm happy you like the script.

I made some corrections, could you try ?
Thanks !
comment
created
iampavan
username_0
Awesome. Works great!

Thank you Fabien.
comment
created
fabiencytadel
username_1
Nice ! Thanks for your help !
comment
closed
fabiencytadel
username_1
issue