Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JIRA Rest API, Cookie-based authentication with a session token

Elvira Safina
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!
November 24, 2021

Hi guys!

 It looks like cookie based authentication is deprecated for Jira Cloud for 2+ years:

https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/ 

Is this also applies to same-browser cookie-based auth with cloud.session.token?

Because it still works for us. We just send a Get request to /rest/auth/1/session and then access any endpoint.

Could you please give some recommendations if we should use API Token authentication instead or if everything will work this way?

1 answer

1 accepted

1 vote
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 30, 2021

Hello @Elvira Safina ,

Browser APIs (AKA: web APIs) is built-in to the browser and work via a web request using the browser's active session token for the authentication, so if you are logged into Jira via the browser's session the API call will work over that session without any additional login requirements as the session header is passed along from the browser built-in API functionality. 

Alternatively, if you are connecting from a scripted function or external application (i.e. curl command from terminal or app like Postman), this will require the API token to pass the additional credentials into the call for the external verification.  

Regards,
Earl

Elvira Safina
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!
November 30, 2021

Got it, thanks, Earl

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events