We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccc2975 commit 8ae5f2eCopy full SHA for 8ae5f2e
src/main/antora/modules/ROOT/pages/auditing.adoc
@@ -104,10 +104,9 @@ class SpringSecurityAuditorAware implements ReactiveAuditorAware<User> {
104
public Mono<User> getCurrentAuditor() {
105
106
return ReactiveSecurityContextHolder.getContext()
107
- .filter(it -> it.getAuthentication() != null)
108
- .map(SecurityContext::getAuthentication)
+ .mapNotNull(SecurityContext::getAuthentication)
109
.filter(Authentication::isAuthenticated)
110
- .map(Authentication::getPrincipal)
+ .mapNotNull(Authentication::getPrincipal)
111
.map(User.class::cast);
112
}
113
0 commit comments