Skip to content

Commit

Permalink
Justerer tilgangsannotering på test-tjenesten
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad committed Nov 25, 2024
1 parent 4ff3855 commit b17502e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import no.nav.k9.felles.konfigurasjon.env.Environment;
import no.nav.k9.felles.sikkerhet.abac.BeskyttetRessurs;
import no.nav.k9.felles.sikkerhet.abac.TilpassetAbacAttributt;
import no.nav.k9.prosesstask.rest.AbacEmptySupplier;
import no.nav.ung.sak.web.server.abac.AbacAttributtSupplier;

import java.util.Optional;
Expand Down Expand Up @@ -46,7 +47,7 @@ public ForvaltningTestRestTjeneste(MicrosoftGraphTjeneste microsoftGraphTjeneste
@Path("/saksbehandlernavn")
@BeskyttetRessurs(action = READ, resource = APPLIKASJON)
@SuppressWarnings("findsecbugs:JAXRS_ENDPOINT")
public Response finnNavnPåSakbehandler(@Parameter(description = "saksbehandleIdent") @TilpassetAbacAttributt(supplierClass = AbacAttributtSupplier.class) @Valid SaksbehandlerIdentDto saksbehandler) {
public Response finnNavnPåSakbehandler(@Parameter(description = "saksbehandleIdent") @TilpassetAbacAttributt(supplierClass = AbacEmptySupplier.class) @Valid SaksbehandlerIdentDto saksbehandler) {
if (Environment.current().isProd()) {
throw new IllegalArgumentException("Kun tiltenkt brukt i test");
}
Expand Down

0 comments on commit b17502e

Please sign in to comment.