SSO from Jira "user server" to Confluence almost working
Asked by Max Allan (Surevine):

Hi, I have Confluence (7.3.4) and Jira (8.8.0 and Service Desk) with a "Jira User Server" configured in Jira that Confluence is using.

IF I use Service desk linked documents (by searching for help in the customer portal) then I can see embedded documents in SD, and if I click a link to a related document I am taken to confluence and am fully logged in (can edit my profile etc.). I can go back to Jira Core and use the app navigator to go back to Confluence and I am logged in.

However, if I (logout of everything) first login to Jira Core and use the application navigator to get to Confluence then Confluence prompts me for a username/password. I am using an external auth provider (SAML from Reichert) on Jira to create the users. So users don't have a Jira password, so they cannot login with username/password.

Should the application navigator take me to a logged in Confluence? The app links are using "OAuth (impersonation)" in both directions from both apps.

(I don't think the SAML makes any significant difference to the functionality. All it does is create users in Jira's internal directory, users who don't know their passwords!)


Answers:
author: Ed Letifov _TechTime - New Zealand_
body: Hello, Max.

It sounds like there is a bunch of misconceptions here.

Using Jira as user server in Confluence will never give you SSO. It will give you "same login" i.e. same credentials both in Jira and Confluence, but no SSO, you will always have to login twice.

The integration between JSD and Confluence is most likely the effect of [unlicensed users](https://confluence.atlassian.com/doc/give-access-to-unlicensed-users-from-jira-service-desk-829076204.html) access - a special mode of integration designed specifically for this "JSD to KB in Confluence" scenario.

OAuth only kicks in when there is some data access from one application to another e.g. Jira issue macro on the Confluence page or a link to Confluence page from Jira issue.

Application navigator does not do any authentication - merely displays a link to the other app.

If anything [resolution SAML app for Jira](https://marketplace.atlassian.com/apps/1212130/saml-single-sign-on-sso-jira?hosting=server&tab=overview) is the only thing that is in fact related to SSO. Most likely it does this against your SAML Identity Provider (e.g. Azure Ad or ADFS or OKTA) and does not "just create users" but actually creates them on the first successful login.

How else do you login into Jira Core without a password in the scenario you've described?

To achieve what you are after (SSO between Jira and Confluence) you just need the counterpart for it on Confluence side - [resolution SAML app for Confluence](https://marketplace.atlassian.com/apps/1212129/saml-single-sign-on-sso-confluence?hosting=server&tab=overview). Do you have it in Confluence?

comments: author: Max Allan (Surevine)
body: I thought that would be the case. The "User Server" docs are a bit muddled in with the Crowd docs which _does_ do SSO. It kind of sounds like it could work. And then when it works from JSD, it made me wonder if it should.

I'll have to decide whether to add the SAML on Confluence or use the JSD link!


author: Ed Letifov _TechTime - New Zealand_
body: Despite the fact that I represent another SSO vendor, competing with resolution SAML - EasySSO, with [EasySSO for Jira](https://marketplace.atlassian.com/apps/1212581/easy-sso-jira-kerberos-ntlm-saml?hosting=server&tab=overview&utm_source=community&utm_medium=answer&utm_campaign=easysso-server&utm_term=saml+sso&utm_content=textlink) app and [EasySSO for Confluence](https://marketplace.atlassian.com/apps/1212583/easy-sso-confluence-kerberos-ntlm-saml?hosting=server&tab=overview&utm_source=community&utm_medium=answer&utm_campaign=easysso-server&utm_term=saml+sso&utm_content=textlink) app, I would still say "go SAML". Unless you can go Kerberos/NTLM, then always be Batman!


Tags: confluence-server

jira

jira-service-desk

server

sso

user-management