Authentications.getFromSession() removed in 7.19

Hi,

We are using 7.18.0 version. We have been using org.camunda.bpm.webapp.impl.security.auth.Authentications.getFromSession(HttpSession) method to get the Authentication object from a logged-in session. (Even though the javadoc does not mention it )
We also use the following methods

  1. removeAuthenticationForProcessEngine(enginename)
  2. updateSession(HttpSession, Authentications)

We are upgrading to 7.19 and looks like this method is removed. May I know, which alternative method should we be using? Will Authentications.getCurrent() work?
What will be the replacement for removeAuthenticationForProcessEngine and updateSession()

Thanks
Jay

Hi @Subijay,

You can have a look at:

  • org.camunda.bpm.webapp.impl.security.auth.AuthenticationUtil.getAuthsFromSession(HttpSession)
  • org.camunda.bpm.webapp.impl.security.auth.Authentications.removeByEngineName(String)
  • org.camunda.bpm.webapp.impl.security.auth.AuthenticationUtil.updateSession(HttpSession, Authentications)

Please note that all of these were and still are private API, that is not recommended for use and is subject of change. That allow us to make improvements and adjustments of the code. The above changes were part of refactoring as well.

Hope that helps.

Best,
Yana

Thanks @Yana . It helped

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.