-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: configAn issue in spring-security-configAn issue in spring-security-config
Milestone
Description
Summary
I'd like to be able to change the HTTP BASIC Realm configured by the WebFlux ServerHttpSecurity http.httpBasic()
. It looks to me like there is no way to get at the underlying HttpBasicSpec.entryPoint
to change the default.
Actual Behavior
ServerHttpSecurity http.httpBasic()
always uses the default realm Realm.
Expected Behavior
Add API ServerHttpSecurity http.httpBasic().realmName("myRealm")
similar to HttpSecurity
to change the realm.
Configuration
@Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
http
.authorizeExchange()
.anyExchange().authenticated()
.and()
.httpBasic()
return http.build();
}
Version
Spring Boot 2.1.1.RELEASE
Spring Security 5.1.2.RELEASE
Metadata
Metadata
Assignees
Labels
in: configAn issue in spring-security-configAn issue in spring-security-config