SSO for Jira 5.2: How do I redirect to the login page?

Hi,

I'm trying to integrate Jira (5.2) into our company's ADFS 2.0 to enable single sign on using SAML.

I've written a custom Authenticator (as subclass of JiraSeraphAuthenticator). This authenticator's method getUser(HttpServletRequest req,HttpServletResponse res) extracts the userid from a SAMLResponse and checks the CrowdService for a user with this id.

This is working as expected- If I log in on the ADFS page, I'm logged in correctly.

My problem is now how to redirect to the ADFS login page. I've tried writing a subclass of SecurityFilter that creates the SAML-request and redirects to the ADFS instead of the Seraph login URL, but it seems like this is never happening- I only see the Jira login form. It seems like the decision to request the user to login is happening somewhere else.

Any Idea where I have to put my piece of code to make Jira redirecting to the ADFS page instead of showing it's own login page?

I thought the LoginFilter could be a place, but as far as I understand it, this filter kicks in after the login form is shown.

thank you very much in advance

Kind Regards

Jörg

2 answers

Hi Jörg,

as far as I know you can configure your custom login URL in WEB-INF/classes/seraph-config.xml

BUT since I am writing a Jira 6 Authenticator myself right now and configuring these URLs didn't work for me, I am at a loss about that, too.

Maybe this configuration works for you?

Kind Regards

Theresa

It came out that I had some misunderstandings about SAML IdP and SP-initiated SSO.

I changed the login.url parameter in seraph-config.xml to

https://adfs.ourcompany.com/adfs/ls/IdpInitiatedSignOn.aspxLoginToRP=jira

where jira is the identifier configured on ADFS for Jira. This is working, ADFS is redirecting me back to Jira with the required SAML message.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

58 views 0 5
Read article

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