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 70f57d9 commit 8b6c011Copy full SHA for 8b6c011
src/main/antora/modules/ROOT/pages/auditing.adoc
@@ -109,10 +109,9 @@ class SpringSecurityAuditorAware implements ReactiveAuditorAware<User> {
109
public Mono<User> getCurrentAuditor() {
110
111
return ReactiveSecurityContextHolder.getContext()
112
- .filter(it -> it.getAuthentication() != null)
113
- .map(SecurityContext::getAuthentication)
+ .mapNotNull(SecurityContext::getAuthentication)
114
.filter(Authentication::isAuthenticated)
115
- .map(Authentication::getPrincipal)
+ .mapNotNull(Authentication::getPrincipal)
116
.map(User.class::cast);
117
}
118
0 commit comments