RequestCacheSpec not used on RedirectServerAuthenticationEntryPoint for OAuth2LoginSpec.configure #7721
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Summary
The
RequestCache
set in the RequestCacheSpec is not used on RedirectServerAuthenticationEntryPoint for OAuth2LoginSpec.configureActual Behavior
From
ServerHttpSecurity
RedirectServerAuthenticationEntryPoint
's RequestCache remains the defaultWebSessionServerRequestCache
rather than the one set on theRequestCacheSpec
forServerHttpSecurity
Expected Behavior
I would think that
RedirectServerAuthenticationEntryPoint
should use theRequestCacheSpec
'sRequestCache
Configuration
See sample below
Version
Spring Security 5.2.1
Sample
See README and sample code on https://github.com/sdoxsee/gateway-sample
The text was updated successfully, but these errors were encountered: