From ffba551e8d281e969c7bde340359318f81df3152 Mon Sep 17 00:00:00 2001 From: Kamal Mohammed Date: Mon, 4 Mar 2024 11:50:27 -0700 Subject: [PATCH] GRAD2-2465 - Delete a student and related data --- .../api/dataconversion/config/WebSecurityConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/main/java/ca/bc/gov/educ/api/dataconversion/config/WebSecurityConfiguration.java b/api/src/main/java/ca/bc/gov/educ/api/dataconversion/config/WebSecurityConfiguration.java index 283e9824..e89cd61d 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/dataconversion/config/WebSecurityConfiguration.java +++ b/api/src/main/java/ca/bc/gov/educ/api/dataconversion/config/WebSecurityConfiguration.java @@ -16,6 +16,10 @@ @EnableWebSecurity public class WebSecurityConfiguration { + public WebSecurityConfiguration() { + SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_INHERITABLETHREADLOCAL); + } + @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http