TSK-318: Enable security by default on Spring
This commit is contained in:
parent
061e7e068e
commit
2652810461
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -23,5 +23,4 @@ public class SpringTaskanaEngineImpl extends TaskanaEngineImpl {
|
||||||
this.transactionFactory = new SpringManagedTransactionFactory();
|
this.transactionFactory = new SpringManagedTransactionFactory();
|
||||||
this.sessionManager = createSqlSessionManager();
|
this.sessionManager = createSqlSessionManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue