mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-2396 move anonymous access conf to CBAppConfig
This commit is contained in:
-12
@@ -29,8 +29,6 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
|
||||
public static final String DEFAULT_APP_ANONYMOUS_ROLE_NAME = "user";
|
||||
|
||||
protected final Map<String, Object> plugins;
|
||||
protected boolean anonymousAccessEnabled;
|
||||
protected String anonymousUserRole;
|
||||
protected String defaultUserRole;
|
||||
protected boolean resourceManagerEnabled;
|
||||
protected String[] enabledFeatures;
|
||||
@@ -49,16 +47,6 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
|
||||
this.enabledFeatures = src.enabledFeatures;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAnonymousAccessEnabled() {
|
||||
return anonymousAccessEnabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAnonymousUserRole() {
|
||||
return anonymousUserRole;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDefaultUserRole() {
|
||||
return defaultUserRole;
|
||||
|
||||
@@ -47,6 +47,8 @@ public class CBAppConfig extends BaseAuthWebAppConfiguration implements WebAuthC
|
||||
private boolean linkExternalCredentialsWithUser;
|
||||
|
||||
private boolean redirectOnFederatedAuth;
|
||||
private boolean anonymousAccessEnabled;
|
||||
private String anonymousUserRole;
|
||||
|
||||
private String[] enabledDrivers;
|
||||
private String[] disabledDrivers;
|
||||
@@ -92,6 +94,16 @@ public class CBAppConfig extends BaseAuthWebAppConfiguration implements WebAuthC
|
||||
this.linkExternalCredentialsWithUser = src.linkExternalCredentialsWithUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAnonymousAccessEnabled() {
|
||||
return anonymousAccessEnabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAnonymousUserRole() {
|
||||
return anonymousUserRole;
|
||||
}
|
||||
|
||||
public void setAnonymousAccessEnabled(boolean anonymousAccessEnabled) {
|
||||
this.anonymousAccessEnabled = anonymousAccessEnabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user