Prevent Save @Transient Authentication with existing HttpSession
Previously, @Transient Authentication would get saved if an existing
HttpSession existed but it shouldn't.
This commit always prevents @Transient Authentication from being saved.
Closes gh-9992
@ -233,6 +233,9 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@@ -233,6 +233,9 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@ -327,6 +330,9 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@@ -327,6 +330,9 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@ -348,7 +354,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@@ -348,7 +354,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
// If HttpSession exists, store current SecurityContext but only if it has
// actually changed in this thread (see SEC-37, SEC-1307, SEC-1528)
if(httpSession!=null){
@ -369,10 +375,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@@ -369,10 +375,7 @@ public class HttpSessionSecurityContextRepository implements SecurityContextRepo
@ -614,6 +615,21 @@ public class HttpSessionSecurityContextRepositoryTests {
@@ -614,6 +615,21 @@ public class HttpSessionSecurityContextRepositoryTests {