BambooAuthenticationContext #getUser() returns null even if logged in

public class MyServlet extends HttpServlet {
  protected final BambooAuthenticationContext authenticationContext;

  protected MyServlet(@ComponentImport @Qualifier("bambooAuthenticationContext") BambooAuthenticationContext authenticationContext) {
      this.authenticationContext = authenticationContext;

  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
    User user = authenticationContext.getUser();

Why user is null even if logged in?

We need to qualify authenticationContext param due to duplicated bean definitions.

Thanks in advance.

the first question that comes to mind is why is there the conflict between the bean definitions?
Bamboo provides only one implementation of the BambooAuthenticationContext.
Are you able to find what other bean has the same bean id or name value?