]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/ExecutionThread.java
Revert explicit security context propagation
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / execution / ExecutionThread.java
index 7493de4e7bd5178474304110ede04cc84c86ac6a..075a851dc8af90e99f7fc63b07041f637b92d27f 100644 (file)
@@ -40,6 +40,13 @@ public class ExecutionThread extends Thread {
        }
 
        public void run() {
+               // authenticate thread
+//             Authentication authentication = getProcessThreadGroup()
+//                             .getAuthentication();
+//             if (authentication == null)
+//                     throw new SlcException("Can only execute authenticated threads");
+//             SecurityContextHolder.getContext().setAuthentication(authentication);
+
                if (getContextClassLoader() != null) {
                        if (log.isTraceEnabled())
                                log.trace("Context class loader set to "
@@ -82,6 +89,10 @@ public class ExecutionThread extends Thread {
                processThread.getProcessThreadGroup().dispatchAddStep(step);
        }
 
+       protected ProcessThreadGroup getProcessThreadGroup() {
+               return processThread.getProcessThreadGroup();
+       }
+
        public RealizedFlow getRealizedFlow() {
                return realizedFlow;
        }