How are Jira 7.1 gadgets accessing the Jira instance?

This article in the knowledga base states:

 

When accessing the Dashboard, JIRA gadgets use themselves as proxy, with the fully resolvable host name - so the JIRA instance needs to be able to access itself.


So what does this mean? The gadget (running as Java servlet on the JIRA Tomcat application server) opens a http(s ???) connection to the baseurl? If yes, are all cookies from the original request (from the client browser) forwarded?

1 answer

0 vote

Yes, you've understood it correctly.  It opens a connection to itself and the gadgets are given the same session information (i.e. your login) as the browser gives to the main connection

 

So the connection is created from the JIRA server to the baseurl and not from the client (browser) to the baseurl?

I see 2 problems here:

1) In our scenario the baseurl points to a reverse proxy which handles corporate authentication. We are not using JIRA authentication. If a gadget want's to connect to the baseurl, then all cookies must be sent - otherwise it will face a login dialog, which it can't handle.

2) We have two domains for one Jira. I know that this is not recommended but it is like it is. How does the gadget get the baseurl? Is the baseurl build on the client?

 

It's quite common to go through a reverse proxy like that - I've not run into problems with authentication of gadgets, but I don't know how complex the authentication stuff might get. 

The gadgets will take the base url from the application configuration - it's a single field in the general configuration. Your second domain won't work properly.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

818 views 2 19
Join discussion

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