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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,419,210
Community Members
 
Community Events
171
Community Groups

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., https://me.atlassian.net) and the username (e.g., un), password (e.g., psw), is that sth like this?

https://me.atlassian.net/?os_username=un&os_password=psw

5 answers

1 accepted

6 votes
Answer accepted

https://confluence.atlassian.com/display/JIRA/Displaying+Search+Results+in+XML

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.http://jira.atlassian.com/browse/TST-1?os_username=tester&os_password=tstpassword). 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. http://mycompany.com/anypage?os_authType=basic). 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.

Dave Atlassian Team Aug 11, 2013

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

1 vote

you can use the base64 encoded method, check this doc

http://www.j-tricks.com/1/post/2012/05/java-rest-client-for-jira-using-jersey.html

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 https://docs.atlassian.com/jira/REST/latest/

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.

0 votes

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

https://confluence.atlassian.com/display/DOCSPRINT/The+Simplest+Possible+JIRA+REST+Examples

Suggest an answer

Log in or Sign up to answer