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

Passing username and password via URL to jira

I am trying to access to the source page of a jira ticket. How can I pass along the authentication token via a parameter in the URL, which I can then incorporate into the URL I pass to my program and read the source page.

lets say I have the base url (e.g., and the username (e.g., un), password (e.g., psw), is that sth like this?

5 answers

1 accepted

5 votes
Answer accepted

Accessing protected data

When accessing data generated from JIRA, you may find that access to some resources requires user authentication (i.e. requires you to login). There are three options for this:

  1. To enable access to data without logging in, your JIRA administrator may specify the 'Browse' permission for Anyone.
  2. You can provide the parameters os_username and os_password in the request URL (e.g. The problem with this method is that it transmits your username and password across the wire in clear text, which may not be an option for some users.
  3. You can provide the request parameter os_authType=basic (e.g. This will force the server to issue a challenge for user credentials (i.e. a login prompt) via the basic http authentication protocol. If you are running over SSL, you still need to specify the os_authType=basic parameter if you require the user to authenticate.

Understand that this is a document relating to JIRA 6.1 EAP, and does not apply to OnDemand.

It's not a good idea to pass your pasword in clear text and I also think that's not possible in the way you describe as the JIRA login is done through POST request. Consider using the JIRA REST API to get the ticket contents

Which programming language are you using? There are various examples showing you how to use basic authentication.

I am using Objective-C. I just need to parse some part of the source page of jira tickets. Since it works for other open source bug repositories, I would like to make that working for another JIRA repository with login.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,316 views 13 25
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you