• Andy Wilkinson's avatar
    Tolerate AuthenticationSwitchUserEvent with null target user · 8e6b4629
    Andy Wilkinson authored
    When Spring Security is misconfigured it's possible to switch from an anonymous user
    to a normal user. When switching back again, the corresponding
    AuthenticationSwitchUserEvent will have a null target user. Previously, Actuator's
    AuthenticationAuditListener would throw a NullPointerException when it received such an
    event.
    
    This commit updates the audit listener to defensively handled events with a null target
    user.
    
    Closes gh-15767
    8e6b4629
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
spring-boot-project Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-samples-invoker Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...