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>?
Community moderators have prevented the ability to post new answers.
Hi Mark,
I believe you could try to do something like that:
public class CustomJiraAuthenticator extends CrowdAuthenticator { public CustomJiraAuthenticator() { super(RestCrowdHttpAuthenticationFactory.getAuthenticator(), () -> 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.