Skip to content

Commit 3aad78e

Browse files
committed
Fix
1 parent a825909 commit 3aad78e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/nl/b3p/planmonitorwonen/api/controller/HelloController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88

99
import java.util.Map;
1010
import nl.b3p.planmonitorwonen.api.security.PlanmonitorAuthenticationService;
11+
import org.springframework.context.annotation.Profile;
1112
import org.springframework.http.MediaType;
1213
import org.springframework.security.core.annotation.CurrentSecurityContext;
1314
import org.springframework.security.core.context.SecurityContext;
1415
import org.springframework.web.bind.annotation.GetMapping;
1516
import org.springframework.web.bind.annotation.RestController;
1617

1718
@RestController
19+
@Profile("!test")
1820
public class HelloController {
1921
private final PlanmonitorAuthenticationService planmonitorAuthenticationService;
2022

src/main/java/nl/b3p/planmonitorwonen/api/security/PlanmonitorAuthenticationService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.util.stream.Stream;
2121
import org.postgresql.util.PGobject;
2222
import org.springframework.beans.factory.annotation.Qualifier;
23+
import org.springframework.context.annotation.Profile;
2324
import org.springframework.jdbc.core.simple.JdbcClient;
2425
import org.springframework.security.core.Authentication;
2526
import org.springframework.security.core.AuthenticationException;
@@ -30,6 +31,7 @@
3031
import org.tailormap.api.security.TailormapUserDetails;
3132

3233
@Service
34+
@Profile("!test")
3335
public class PlanmonitorAuthenticationService {
3436
public record PlanmonitorAuthentication(
3537
Authentication authentication, boolean isProvincie, Set<String> gemeentes) {}

0 commit comments

Comments
 (0)