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,298,880
Community Members
 
Community Events
165
Community Groups

Is it possible to authentification on JIRA API without server between client and Jira

I built a client application (angular) that allow to my team to create jira issue.

The user has to login with their jira credential (user and pw) on my app.
 
To post a issue on JIRA API I'm using basic auth on the request  header :
"Authorization: Basic XXXXXXXXX"

It worked well until we update JIRA and now basic auth not working anymore. 

What is the best solution to make my app work again ?

Should I implement OAuth but I need a server to manage the Jira OAuth logic or is there any other solution keep a simple client app to communicate with JIRA API ?

2 answers

1 accepted

0 votes
Answer accepted

So, I juste use a proxy on my angular app (client) to be able to keep going the development. For long term solution I'm gonna use a server backend as a proxy to make requests to the JIRA API and then relay the response to my client and add CORS on requests. 

0 votes

Hi @fplomb 
I hope you are well.

Depending on the Jira version a quick action is to use personal access tokens within your script.

https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html 

Kind regards,
Thiago Masutti

Hi @Thiago Masutti 

Thank you for you quick reply.

I saw this option but it's mean that all member of my team has to create is own token and provide it  when they log on my app ?

I can store it on cache but from the moment that you change browser or use an other device you have to provide the token again... And it's pretty boring compare to the basic auth 😳.

Suggest an answer

Log in or Sign up to answer
TAGS

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