Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Propagte security context to threads created by spring #406

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.type.AnnotatedTypeMetadata;
import org.springframework.data.util.Pair;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Component;

/**
Expand Down Expand Up @@ -95,6 +96,7 @@ public BeanWorkFlowRegistryImpl(ConfigurableListableBeanFactory beanFactory, Map

@PostConstruct
void postInit() {
SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_INHERITABLETHREADLOCAL);
workFlowDefinitionService.cleanAllDefinitionMappings();
saveWorkFlow();
saveChecker();
Expand Down