The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Overriding the DefaultAuthenticator worked fine in the 7.13.0 and now in 8.9.0 doesn't work anymore

Overriding the DefaultAuthenticator worked fine in the 7.13.0 and now in 8.9.0 doesn't work anymore

Geoffrey_Jennings
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 16, 2020

When we are running the 7.13.0 version of Jira we create a custon plugin to override the getUserFromBasicAuthentication method in the JiraSeraphAuthenticator. This allowed us to authenticate the restAPI using a SSO provider (keycloak). Now, once we have upgraded it doesnt start anymore. I have gone back into the plugin and tried:

  • going up a level and extended the DefaultAuthenticator (mimic 99% of all the logic that the JiraSeraphAuthenticator does).
  • checked the POM and changed the jira-version in the pom to 8.9.0 from 7.13.0.
  • created a new plugin from scratch from the latest SDK
  • started Jira without it and then started it again with it to prove it is what is breaking it.

Technical Details:

  • changing the version of the plugin (atlassian-plugin.xml):
    • from:
      • <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
    • to:
      • <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}">
  • Uncommented the Jira-core version to get at the security package
  • put it into JIRA-HOME/atlassian-jira/WEB-INF/lib/
  • checked permissions of the file against the other JAR's

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.