Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Assistance with XSRF security token

Said Elgourbi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2022

Hi everyone,

I’m working on automating the download of certain reports from Jira Cloud and could use some guidance on handling session tokens.

We’ve written a Python script that opens the download link in a browser. The issue we’re facing is that the link includes an atl_token parameter, which appears to change with each new web session. Here's an example of the link format:

https://ourJiraLink&atl_token=2563232326565698989856565323232656598

Right now, we have to manually extract the new token from the HTML source each time, or the download fails.

We’ve tried using a Jira API token for authentication, but it didn’t help—likely because these links aren’t exposed through the REST API.

Is there a recommended way to either:

  • Use a persistent session token for this type of access, or

  • Access the same reports via the REST API in a more reliable way?

Appreciate any advice or direction from those who’ve tackled similar issues.

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Champion
July 19, 2022

You might try an RPA framework, which would allow you to log into Jira with your browser to obtain a new token.

Said Elgourbi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2022

that would make it way too complicated.

I created a chrome extension that fetch the token, the user will have to copy it into the script. 

if anyone has any other easier solution, please share it with us. 

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events