Pull request #645: RED-4515 - tenants endpoint public
Merge in RED/persistence-service from RED-4515-sec-fix to master * commit '3b9e212eceaafb4e7e9658900b405e9ba8593475': RED-4515 - tenants endpoint public RED-4515 - tenants endpoint public
This commit is contained in:
commit
59b4fd137b
@ -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/**");
|
||||
|
||||
|
||||
@ -58,6 +58,7 @@ public class HeaderBasedKeycloakRealmResolver implements KeycloakConfigResolver
|
||||
|
||||
|
||||
@SneakyThrows
|
||||
@SuppressWarnings("PMD.UnusedPrivateMethod")
|
||||
private String getTenantFromBearerToken(HttpFacade.Request request) {
|
||||
|
||||
String authHeader = request.getHeader("Authorization");
|
||||
@ -95,4 +96,4 @@ public class HeaderBasedKeycloakRealmResolver implements KeycloakConfigResolver
|
||||
return values.get(values.size() - 1);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,8 +87,6 @@ public class TenantManagementService {
|
||||
private final GeneralConfigurationService generalConfigurationService;
|
||||
private final KeyCloakRoleManagerService keyCloakRoleManagerService;
|
||||
private final KeyCloakAdminClientService keycloak;
|
||||
private final KeyCloakSettings keyCloakSettings;
|
||||
|
||||
|
||||
public TenantManagementService(EncryptionDecryptionService encryptionService,
|
||||
@Qualifier("tenantLiquibaseProperties") LiquibaseProperties liquibaseProperties,
|
||||
@ -97,8 +95,7 @@ public class TenantManagementService {
|
||||
AsyncMigrationStarterService asyncMigrationStarterService,
|
||||
GeneralConfigurationService generalConfigurationService,
|
||||
KeyCloakRoleManagerService keyCloakRoleManagerService,
|
||||
KeyCloakAdminClientService keycloak,
|
||||
KeyCloakSettings keyCloakSettings) {
|
||||
KeyCloakAdminClientService keycloak) {
|
||||
|
||||
this.encryptionService = encryptionService;
|
||||
this.liquibaseProperties = liquibaseProperties;
|
||||
@ -108,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