/** * Configures HTTP Basic authentication. An example configuration is provided below: * * <pre class="code"> * @Bean * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * http * // ... * .httpBasic() * // used for authenticating the credentials * .authenticationManager(authenticationManager) * // Custom persistence of the authentication * .securityContextRepository(securityContextRepository); * return http.build(); * } * </pre> * * @return the {@link HttpBasicSpec} to customize */ public HttpBasicSpec httpBasic() { if (this.httpBasic == null) { this.httpBasic = new HttpBasicSpec(); } return this.httpBasic; }
/** * Configures HTTP Basic authentication. An example configuration is provided below: * * <pre class="code"> * @Bean * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * http * // ... * .httpBasic() * // used for authenticating the credentials * .authenticationManager(authenticationManager) * // Custom persistence of the authentication * .securityContextRepository(securityContextRepository); * return http.build(); * } * </pre> * * @return the {@link HttpBasicSpec} to customize */ public HttpBasicSpec httpBasic() { if (this.httpBasic == null) { this.httpBasic = new HttpBasicSpec(); } return this.httpBasic; }
/** * Configures HTTP Basic authentication. An example configuration is provided below: * * <pre class="code"> * @Bean * public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { * http * // ... * .httpBasic() * // used for authenticating the credentials * .authenticationManager(authenticationManager) * // Custom persistence of the authentication * .securityContextRepository(securityContextRepository); * return http.build(); * } * </pre> * * @return the {@link HttpBasicSpec} to customize */ public HttpBasicSpec httpBasic() { if (this.httpBasic == null) { this.httpBasic = new HttpBasicSpec(); } return this.httpBasic; }