"Client must be authenticated to access this resource.","status-code":401
Hi all, I configured a task with powershell and it worked correctly on Friday.
I tried relaunching it today but I have the following error. "Client must be authenticated to access this resource.","status-code":401
Can you help me?
Thanks Daniele
Comments (6)
-
-
Account Deactivated Greetings
It was working until yesterday. Something got changed and we are also facing the same issue.
Can someone please help with this issue?
-
Hi,
I am not sure if anyone is still maintaining the powershell script, but if it was working last Friday then it must be because that script is still using cookie authentication that has been deprecated some time ago and it is being currently removed:
Knowing a bit of powershell you should be able to modify the script so that it uses API Tokens (look at the latest bash scripts for Jira and Conf as an example).
Finally, I have asked a colleague if he can have a look at this script, as well as we will work to create a new unified backup script in python so that it can be run from every OS.
-
Account Deactivated Thanks. Appreciate the quick response. I have used the following script and it is working fine. backup-jira-api-token.sh
-
Thanks for confirming. The issue indeed is that cookie authentication is being removed
-
- changed status to resolved
Apparently Cookie authentication started being removed as already announced some time ago and this is why the PS script stopped working:
Knowing a bit of powershell you should be able to modify the script so that it uses API Tokens (look at the latest bash scripts for Jira and Conf as an example).
- Log in to comment
Team,
Please fix this asap, script was running all fine till yesterday. However, cookie isn't authenticating with the username and password anymore.
Thanks, Suresh