CB-2396 move anonymous access conf to CBAppConfig

This commit is contained in:
yagudin10
2022-08-16 15:51:57 +03:00
parent 85f411f1f3
commit eefcdf1257
2 changed files with 12 additions and 12 deletions
@@ -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;
}