/** * Configures exception handling (i.e. handles when authentication is requested). An example configuration can * be found below: * * <pre class="code"> * @Bean * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * http * // ... * .exceptionHandling() * // customize how to request for authentication * .authenticationEntryPoint(entryPoint); * return http.build(); * } * </pre> * * @return the {@link ExceptionHandlingSpec} to customize */ public ExceptionHandlingSpec exceptionHandling() { if (this.exceptionHandling == null) { this.exceptionHandling = new ExceptionHandlingSpec(); } return this.exceptionHandling; }
/** * Configures exception handling (i.e. handles when authentication is requested). An example configuration can * be found below: * * <pre class="code"> * @Bean * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * http * // ... * .exceptionHandling() * // customize how to request for authentication * .authenticationEntryPoint(entryPoint); * return http.build(); * } * </pre> * * @return the {@link ExceptionHandlingSpec} to customize */ public ExceptionHandlingSpec exceptionHandling() { if (this.exceptionHandling == null) { this.exceptionHandling = new ExceptionHandlingSpec(); } return this.exceptionHandling; }
/** * Configures exception handling (i.e. handles when authentication is requested). An example configuration can * be found below: * * <pre class="code"> * @Bean * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * http * // ... * .exceptionHandling() * // customize how to request for authentication * .authenticationEntryPoint(entryPoint); * return http.build(); * } * </pre> * * @return the {@link ExceptionHandlingSpec} to customize */ public ExceptionHandlingSpec exceptionHandling() { if (this.exceptionHandling == null) { this.exceptionHandling = new ExceptionHandlingSpec(); } return this.exceptionHandling; }