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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JIRA SD basic auth rest api

Hi Experts

I'm new to JIRA SD and wanted to connect to an internal JIRA SD endpoint
What's JIRA SD basic auth endpoint? I didn't find example on (example link deprecated). Is there sth like  /servicedesk/rest/auth/1/xxxx?

1 answer

1 accepted

0 votes
Answer accepted

Hi @Lia

Welcome to Atlassian Community

You may use any endpoint, as long as the endpoint needs authentication.if the endpoint return two different responses 200 and 401, then it would be a valid way of authentication

JIRA Service Desk REST API uses the same authentication methods as JIRA. The preferred authentication methods are OAuth and HTTP Basic Auth. 

When user is authenticated the first time Jira sends back a response with a cookie that may look like this:

JSESSIONID=6AD97CC4450456CD968B22F7201220A7; atlassian.xsrf.token=BWP3-NZB2-6EDY-6C7K_d3ec7ed6f227879ac4cf6aee83f28e085e49227b_lin

We store the user's cookie in their session and we use it every time we send a API request to Jira rest api on their behalf (so we don't keep the password stored in our session for security reasons) 


As cookie is a valid authentication method for Jira service desk api.

Thanks. I'm actually have some working code with JIRA rest api 
JIRA_domain/jira/rest/auth/1/session + username/password passed working
But when I change it to
JIRASD_domain/jira/rest/auth/1/session + username/password it failed with error like "you found a dead link"
Hence I'm thinking the JIRASD_domain should be followed by sth else

As Najja mentioned above, login actually worked with basic auth wit any endpoint. Issue actual comes from trusted certs 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

157 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you