Merge branch 'master' of ssh://git.iqser.com:2222/red/persistence-service into bugfix/RED-6265
# Conflicts: # persistence-service-v1/persistence-service-processor-v1/src/main/java/com/iqser/red/service/persistence/management/v1/processor/service/TenantManagementService.java
This commit is contained in:
commit
95f15cebd9
@ -74,6 +74,7 @@ public class SecuredKeyCloakConfiguration extends KeycloakWebSecurityConfigurerA
|
||||
"/redaction-gateway-v1/async/download/with-ott/**",
|
||||
"/redaction-gateway-v1/docs/**",
|
||||
"/redaction-gateway-v1/docs",
|
||||
"/redaction-gateway-v1/tenants/simple",
|
||||
"/redaction-gateway-v1",
|
||||
"/internal-api/**");
|
||||
|
||||
|
||||
@ -57,10 +57,8 @@ public class HeaderBasedKeycloakRealmResolver implements KeycloakConfigResolver
|
||||
}
|
||||
|
||||
|
||||
// PMD marks this as unused, although it is clearly used.
|
||||
// This seems to be a bug in PMD.
|
||||
@SuppressWarnings("PMD.UnusedPrivateMethod")
|
||||
@SneakyThrows
|
||||
@SuppressWarnings("PMD.UnusedPrivateMethod")
|
||||
private String getTenantFromBearerToken(HttpFacade.Request request) {
|
||||
|
||||
String authHeader = request.getHeader("Authorization");
|
||||
@ -98,4 +96,4 @@ public class HeaderBasedKeycloakRealmResolver implements KeycloakConfigResolver
|
||||
return values.get(values.size() - 1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,7 +35,6 @@ import org.springframework.jdbc.datasource.SingleConnectionDataSource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.iqser.red.keycloak.commons.KeyCloakAdminClientService;
|
||||
import com.iqser.red.keycloak.commons.KeyCloakSettings;
|
||||
import com.iqser.red.service.persistence.management.v1.processor.exception.ConflictException;
|
||||
import com.iqser.red.service.persistence.management.v1.processor.exception.InternalServerErrorException;
|
||||
import com.iqser.red.service.persistence.management.v1.processor.exception.NotFoundException;
|
||||
@ -87,8 +86,6 @@ public class TenantManagementService {
|
||||
private final GeneralConfigurationService generalConfigurationService;
|
||||
private final KeyCloakRoleManagerService keyCloakRoleManagerService;
|
||||
private final KeyCloakAdminClientService keycloak;
|
||||
@SuppressWarnings("PMD.UnusedPrivateField")
|
||||
private final KeyCloakSettings keyCloakSettings;
|
||||
|
||||
|
||||
public TenantManagementService(EncryptionDecryptionService encryptionService,
|
||||
@ -98,8 +95,7 @@ public class TenantManagementService {
|
||||
AsyncMigrationStarterService asyncMigrationStarterService,
|
||||
GeneralConfigurationService generalConfigurationService,
|
||||
KeyCloakRoleManagerService keyCloakRoleManagerService,
|
||||
KeyCloakAdminClientService keycloak,
|
||||
KeyCloakSettings keyCloakSettings) {
|
||||
KeyCloakAdminClientService keycloak) {
|
||||
|
||||
this.encryptionService = encryptionService;
|
||||
this.liquibaseProperties = liquibaseProperties;
|
||||
@ -109,7 +105,6 @@ public class TenantManagementService {
|
||||
this.generalConfigurationService = generalConfigurationService;
|
||||
this.keyCloakRoleManagerService = keyCloakRoleManagerService;
|
||||
this.keycloak = keycloak;
|
||||
this.keyCloakSettings = keyCloakSettings;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user