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

Suggest an answer

Log in or Sign up to answer