Steps to reproduce:
- Enable Container Based Authentication following [1]
- Open for example Cockpit in any browser
Expected behavior:
As a user I don't need to login and have access to Cockpit.
Observed Behavior:
The following NullPointerException is thrown:
java.lang.NullPointerException at org.camunda.bpm.webapp.impl.security.auth.AuthenticationService.createAuthenticate(AuthenticationService.java:58) at org.camunda.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter.createAuthentication(ContainerBasedAuthenticationFilter.java:166) at org.camunda.bpm.webapp.impl.security.auth.ContainerBasedAuthenticationFilter.doFilter(ContainerBasedAuthenticationFilter.java:104) ...
Hints:
- In [2] the user query returns no user.
[1]: https://github.com/camunda-consulting/code/tree/master/snippets/springboot-security-sso
[2]: https://github.com/camunda/camunda-bpm-webapp/blob/8a94016e312c1295b65681fb27028c104f7421b4/src/main/java/org/camunda/bpm/webapp/impl/security/auth/AuthenticationService.java#L57