File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/eu/openanalytics/containerproxy/auth/impl Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 21
21
package eu .openanalytics .containerproxy .auth .impl ;
22
22
23
23
import java .io .Serializable ;
24
+ import java .util .Arrays ;
24
25
import java .util .Collection ;
25
26
import java .util .HashMap ;
26
27
import java .util .List ;
65
66
import org .springframework .security .core .session .SessionRegistryImpl ;
66
67
import org .springframework .security .web .AuthenticationEntryPoint ;
67
68
import org .springframework .security .web .authentication .logout .LogoutFilter ;
69
+ import org .springframework .security .web .authentication .session .ChangeSessionIdAuthenticationStrategy ;
70
+ import org .springframework .security .web .authentication .session .CompositeSessionAuthenticationStrategy ;
68
71
import org .springframework .security .web .authentication .session .RegisterSessionAuthenticationStrategy ;
69
72
import org .springframework .security .web .authentication .session .SessionAuthenticationStrategy ;
70
73
import org .springframework .security .web .authentication .www .BasicAuthenticationFilter ;
@@ -169,7 +172,10 @@ protected HttpSessionManager httpSessionManager() {
169
172
@ Bean
170
173
@ ConditionalOnProperty (name ="proxy.authentication" , havingValue ="keycloak" )
171
174
protected SessionAuthenticationStrategy sessionAuthenticationStrategy () {
172
- return new RegisterSessionAuthenticationStrategy (new SessionRegistryImpl ());
175
+ return new CompositeSessionAuthenticationStrategy (Arrays .asList (
176
+ new RegisterSessionAuthenticationStrategy (new SessionRegistryImpl ()),
177
+ new ChangeSessionIdAuthenticationStrategy ()
178
+ ));
173
179
}
174
180
175
181
@ Bean
You can’t perform that action at this time.
0 commit comments