Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SSO Integration with JIRA 7.2

Mark H_ Williams October 26, 2016

We have a custom authenticator for our JIRA instances that implements the CrowdAuthenticator class. As of JIRA 7.2 the included seraph library has been updated to version 2.8.8 which has a new CrowdAuthenticator constructor. Previously I was able to do something like this:

public class CustomJiraAuthenticator extends CrowdAuthenticator {
	public CustomJiraAuthenticator() {
		super(RestCrowdHttpAuthenticationFactory.getAuthenticator());
	}
}


But now CrowdAuthenticator takes two arguments (CrowdHttpAuthenticator and Supplier<CrowdService>). How can I get the Supplier<CrowdService>?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Marcin Kempa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 27, 2016

Hi Mark,

I believe you could try to do something like that:

public class CustomJiraAuthenticator extends CrowdAuthenticator {
    public CustomJiraAuthenticator() {
        super(RestCrowdHttpAuthenticationFactory.getAuthenticator(), () -&gt; ComponentAccessor.getComponent(CrowdService.class));
    }
}

 

BTW are you using JIRA Data Center offering? If yes you could try out SAML / SSO for Data Center add-on provided by Atlassian.

 

Cheers,

Marcin 

TAGS
AUG Leaders

Atlassian Community Events