TSK-318: Enable security by default on Spring

This commit is contained in:
Marcel Lengl 2018-02-21 09:55:52 +01:00 committed by Holger Hagen
parent 061e7e068e
commit 2652810461
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,8 @@ import pro.taskana.TaskanaEngine;
import pro.taskana.impl.TaskanaEngineImpl; import pro.taskana.impl.TaskanaEngineImpl;
/** /**
* This central class creates the TaskanaEngine and holds all the information about DB and Security. * This central class creates the TaskanaEngine and holds all the information about DB and Security.<br>
* Security is enabled by default.
*/ */
public class TaskanaEngineConfiguration { public class TaskanaEngineConfiguration {
@ -27,7 +28,7 @@ public class TaskanaEngineConfiguration {
// global switch to enable JAAS based authentication and Taskana // global switch to enable JAAS based authentication and Taskana
// authorizations // authorizations
protected boolean securityEnabled; protected boolean securityEnabled = true;
protected boolean useManagedTransactions; protected boolean useManagedTransactions;
public TaskanaEngineConfiguration(boolean enableSecurity) { public TaskanaEngineConfiguration(boolean enableSecurity) {

View File

@ -23,5 +23,4 @@ public class SpringTaskanaEngineImpl extends TaskanaEngineImpl {
this.transactionFactory = new SpringManagedTransactionFactory(); this.transactionFactory = new SpringManagedTransactionFactory();
this.sessionManager = createSqlSessionManager(); this.sessionManager = createSqlSessionManager();
} }
} }

View File

@ -18,7 +18,7 @@ public class SpringTaskanaEngineConfiguration extends TaskanaEngineConfiguration
private static final Logger logger = LoggerFactory.getLogger(SpringTaskanaEngineConfiguration.class); private static final Logger logger = LoggerFactory.getLogger(SpringTaskanaEngineConfiguration.class);
public SpringTaskanaEngineConfiguration() { public SpringTaskanaEngineConfiguration() {
super(false); super(true);
} }
public SpringTaskanaEngineConfiguration(boolean enableSecurity) { public SpringTaskanaEngineConfiguration(boolean enableSecurity) {