Fix fine-grained permissions config (#2688)

* disabled by default
* evaluaton context considers fine-grained only when acm is enabled

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-09-24 09:40:27 +03:00
committed by GitHub
parent e7765bf4d2
commit c20ee8bdf3
10 changed files with 128 additions and 84 deletions

View File

@@ -21,11 +21,13 @@ import org.eclipse.hawkbit.im.authentication.SpRole;
import org.eclipse.hawkbit.repository.test.util.WithUser;
import org.junit.jupiter.api.Test;
import org.springframework.http.HttpStatus;
import org.springframework.test.context.TestPropertySource;
/**
* Feature: Integration Test - Security<br/>
* Story: PreAuthorized enabled
*/
@TestPropertySource(properties = "hawkbit.acm.access-controller.enabled=true")
class PreAuthorizeEnabledTest extends AbstractSecurityTest {
/**