Skip to content

Commit

Permalink
enable SecurityContext synchronization by default
Browse files Browse the repository at this point in the history
Signed-off-by: liga-oz <liga.ozolina@sap.com>
  • Loading branch information
liga-oz committed Apr 25, 2024
1 parent 142979c commit fec6ff2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -29,7 +29,7 @@ public class SecurityContextAutoConfiguration {

@Bean
@ConditionalOnMissingBean(SecurityContextHolderStrategy.class)
@ConditionalOnProperty(name = "sap.spring.security.hybrid.sync_securitycontext", havingValue = "true")
@ConditionalOnProperty(name = "sap.spring.security.hybrid.sync_securitycontext", havingValue = "true", matchIfMissing = true)
public MethodInvokingFactoryBean methodInvokingFactoryBean() {
MethodInvokingFactoryBean methodInvokingFactoryBean = new MethodInvokingFactoryBean();
methodInvokingFactoryBean.setTargetClass(SecurityContextHolder.class);
Expand Down

0 comments on commit fec6ff2

Please sign in to comment.