mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2396 add tests for disabled anonymous access
This commit is contained in:
-4
@@ -37,8 +37,6 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
|
||||
|
||||
public BaseWebAppConfiguration() {
|
||||
this.plugins = new LinkedHashMap<>();
|
||||
this.anonymousAccessEnabled = true;
|
||||
this.anonymousUserRole = DEFAULT_APP_ANONYMOUS_ROLE_NAME;
|
||||
this.defaultUserRole = DEFAULT_APP_ANONYMOUS_ROLE_NAME;
|
||||
this.resourceManagerEnabled = true;
|
||||
this.enabledFeatures = null;
|
||||
@@ -46,8 +44,6 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
|
||||
|
||||
public BaseWebAppConfiguration(BaseWebAppConfiguration src) {
|
||||
this.plugins = new LinkedHashMap<>(src.plugins);
|
||||
this.anonymousAccessEnabled = src.anonymousAccessEnabled;
|
||||
this.anonymousUserRole = src.anonymousUserRole;
|
||||
this.defaultUserRole = src.defaultUserRole;
|
||||
this.resourceManagerEnabled = src.resourceManagerEnabled;
|
||||
this.enabledFeatures = src.enabledFeatures;
|
||||
|
||||
-2
@@ -112,8 +112,6 @@ public abstract class BaseWebApplication extends BaseApplicationImpl implements
|
||||
|
||||
protected abstract void loadConfiguration(String configPath) throws DBException;
|
||||
|
||||
protected abstract void validateConfiguration(Map<String, Object> appConfig) throws DBException;
|
||||
|
||||
@Override
|
||||
public VirtualProjectImpl createProjectImpl(
|
||||
@NotNull RMProject project,
|
||||
|
||||
@@ -56,6 +56,8 @@ public class CBAppConfig extends BaseAuthWebAppConfiguration implements WebAuthC
|
||||
|
||||
public CBAppConfig() {
|
||||
super();
|
||||
this.anonymousAccessEnabled = false;
|
||||
this.anonymousUserRole = DEFAULT_APP_ANONYMOUS_ROLE_NAME;
|
||||
this.supportsCustomConnections = true;
|
||||
this.supportsConnectionBrowser = false;
|
||||
this.supportsUserWorkspaces = false;
|
||||
@@ -73,6 +75,8 @@ public class CBAppConfig extends BaseAuthWebAppConfiguration implements WebAuthC
|
||||
|
||||
public CBAppConfig(CBAppConfig src) {
|
||||
super(src);
|
||||
this.anonymousAccessEnabled = src.anonymousAccessEnabled;
|
||||
this.anonymousUserRole = src.anonymousUserRole;
|
||||
this.supportsCustomConnections = src.supportsCustomConnections;
|
||||
this.supportsConnectionBrowser = src.supportsConnectionBrowser;
|
||||
this.supportsUserWorkspaces = src.supportsUserWorkspaces;
|
||||
|
||||
@@ -589,7 +589,6 @@ public class CBApplication extends BaseWebApplication implements WebAuthApplicat
|
||||
patchConfigurationWithProperties(productConfiguration);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void validateConfiguration(Map<String, Object> appConfig) throws DBException {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user