Spring Security Webflux. How to make ServerWebExchange return pre-authentication Principal
问题 I cannot access the java.security.Principal authenticated by my CAS authentication system. serverWebExchange.getPrincipal() is allways empty. In fact this is the implementation of DefaultServerWebExchange : @Override public <T extends Principal> Mono<T> getPrincipal() { return Mono.empty(); } Another implementation of ServerWebExchange is ServerWebExchangeDecorator and its documentation says: Note: if the purpose for using a decorator is to override properties like getPrincipal() , consider