Skip to content

Commit

Permalink
Remove fnr from path (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaja-nav authored Jun 10, 2024
1 parent 048db4d commit 244b077
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import no.nav.syfo.metric.Metric
import no.nav.syfo.util.APP_CONSUMER_ID
import no.nav.syfo.util.NAV_CALL_ID_HEADER
import no.nav.syfo.util.NAV_CONSUMER_ID_HEADER
import no.nav.syfo.util.NAV_PERSONIDENT_HEADER
import no.nav.syfo.util.bearerCredentials
import no.nav.syfo.util.createCallId
import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -35,8 +36,9 @@ class BrukertilgangConsumer(

val response = webClient
.get()
.uri("$baseUrl/api/v2/tilgang/ansatt/$ansattFnr")
.uri("$baseUrl/api/v2/tilgang/ansatt")
.header(HttpHeaders.AUTHORIZATION, bearerCredentials(exchangedToken))
.header(NAV_PERSONIDENT_HEADER, ansattFnr)
.header(NAV_CALL_ID_HEADER, callId)
.header(NAV_CONSUMER_ID_HEADER, APP_CONSUMER_ID)
.accept(MediaType.APPLICATION_JSON)
Expand Down

0 comments on commit 244b077

Please sign in to comment.