Login from confluence to jira.
Asked by Tomohiro Hirano:

Hello, and now we set up jira and confluence.

<https://confluence.atlassian.com/display/DOC/Confluence+and+JIRA>

i see this, and setup jira and confluence to trusted.

JIRA and Confluence is in the same server installed, and manage Confluence user by JIRA.

URL is setted "http://server-name:8080"(or 8090 about JIRA)

and IP setting 192.\*.\*.\*, both set.

Both app, there's setting in "application link".

But JIRA task in Confluence, and clicked, go to JIRA but request login.

Is there any settings?


Answers:
author: Colin Goudie
body: Seems to me that you are referring to wanting SSO. (Single Sign On)

This only is supported if using Crowd.

If you are using JIRA as as the user management system for Confluence, navigating from JIRA to Confluence or visa-versa will still requrie you to log in as there is not SSO configured between them.

comments: author: Tomohiro Hirano
body: Dear Colin Goudie.

Thank you for your reply. I think when Confluence's user manager is depend on JIRA, i first access to Confluence, and next click JIRA's issue, i can see the issue without login.

You say this can only with using Clowd, ok?


author: MatthewC
body: > But JIRA task in Confluence, and clicked, go to JIRA but request login.

Is it showing the Jira data in Confluence but when you click on it to go to Jira, you are asked to login?

If it is, I wonder if you are suffering from the issue fo having both Jira \& Confluence on the same server? If they are both on different ports and use the root context (/) you need to change the context so that the cookies don't over-write each other.

<https://confluence.atlassian.com/display/JIRAKB/User+is+Logged+Out+of+JIRA+after+Confluence+Login>

Maybe, I have just mi-understood the last line of your question....

comments: author: Tomohiro Hirano
body: Dear Matth Cobby

Thank you for your reply. Exactry, now

JIRA:http://localhost:8080/  
Confluence:http://localhost:8090/

i'll change each like what manuals

JIRA:http://localhost:8080/jira/  
Confluence:http://localhost:8090/confluence/

Thank you.


author: Tomohiro Hirano
body: ![](../../upfiles/BadRequest_1.png)

Hi, Matth Cobby.

i enter the context like my comment, and be no need to login every access for JIRA and Confluence!

But when i access application link on Confluence, "Bad Request" called like image.  
I only changed context path and "URIEncoding=UTF8" added to server.xml.

At JIRA, after adding context-path, re-construction and success.  
But Confluence's application link is can't move...(click add new one, and enter URL and click next, but no responce... )


author: Tomohiro Hirano
body: Hi, Matth Cobby.

i enter the context like my comment, and be no need to login every access for JIRA and Confluence!


author: Harry Chan
body: Make sure you have not only the external IP but also localhost and the ip for localhost.

comments: author: Tomohiro Hirano
body: Dear Harry Chain.

Thank you for your answer. I changed IP setting like this, but can't.  

192.\*.\*.\*  
127.0.0.1

i set the URL pattern to JIRA's accept certification like this from manual.

/plugins/servlet/streams  
/sr/jira.issueviews:searchrequest  
/secure/RunPortlet  
/rest  
/rpc/soap

/plugins/servlet/streams  
/plugins/servlet/applinks/whoami

But there's no config in manuals.

Where do i must check?


author: Harry Chan
body: Check the logs to see what error you get? It should tell you what you are missing.


author: Tomohiro Hirano
body: (atlassian-confluence.log)

Thank you, Harry Chan. i forgot theres logs. But too long.  
There's exception, but i don't know why.

Thank you.


author: Harry Chan
body: It says you are missing /sr/jira.issueviews:searchrequest-xml/ in the list of URL.


author: Tomohiro Hirano
body: there's no list in my URLs. But my URL is listed on the manuals...  
i'll add the URL, thank you.


author: KhongMingA
body: Dear Tomohiro Hirano

<br />

Regarding to the question you had ask, can you try to manually list the all these URLs in the Trusted Application pane:

/rest

/plugins/servlet/applinks/whoami

/plugins/servlet/streams

/rpc/soap

/secure/RunPortlet

/sr/jira.issueviews:searchrequest

One must also add this one:

/rpc/xmlrpc

-[Source](/questions/55576/configuring-application-link-to-confluence-from-jira-issue-links-permission-problem?page=1#55760)

Cheers  
KM


Tags: application-link

jira