ServerHttpSecurity: oauth2Login() ignores securityContextRepository() #7222
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
In org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2LoginSpec#configure, the line
spring-security/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java
Line 1141 in 2055466
does not take into account
ServerHttpSecurity.this.securityContextRepository
(which has the same default value, but can be customized by invokingsecurityContextRepository()
) and blindly creates a new instance ofWebSessionServerSecurityContextRepository
.The text was updated successfully, but these errors were encountered: