Skip to content

Commit

Permalink
Legger på bearer før token mot veilarbperson
Browse files Browse the repository at this point in the history
  • Loading branch information
JulieHillRoa committed Sep 23, 2024
1 parent dd8285b commit 9d5f79a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nais/application/application-config-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
- name: POAO_TILGANG_SCOPE
value: api://dev-gcp.poao.poao-tilgang/.default
- name: VEILARBPERSON_URL
value: http://veilarbperson.obo
value: http://veilarbperson.obo/veilarbperson
- name: VEILARBPERSON_SCOPE
value: api://dev-gcp.obo.veilarbperson/.default
prometheus:
Expand Down
7 changes: 6 additions & 1 deletion .nais/application/application-config-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,21 @@ spec:
rules:
- application: poao-tilgang
namespace: poao
- application: veilarbperson
namespace: obo
external:
- host: pdl-api.prod-fss-pub.nais.io
- host: norg2.prod-fss-pub.nais.io
- host: oppgave.prod-fss-pub.nais.io
- host: veilarbperson.prod-fss-pub.nais.io
env:
- name: POAO_TILGANG_URL
value: http://poao-tilgang.poao
- name: POAO_TILGANG_SCOPE
value: api://prod-gcp.poao.poao-tilgang/.default
- name: VEILARBPERSON_URL
value: http://veilarbperson.obo/veilarbperson
- name: VEILARBPERSON_SCOPE
value: api://prod-gcp.obo.veilarbperson/.default
prometheus:
enabled: true
path: veilarboppgave/internal/prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Personalia hentPersonalia(Fnr fnr, String behandlingsnummer) {
Request request = new Request.Builder()
.url(joinPaths(veilarbpersonUrl, "/api/v3/hent-person"))
.header(ACCEPT, APPLICATION_JSON_VALUE)
.header(AUTHORIZATION, userTokenSupplier.get())
.header(AUTHORIZATION, "Bearer " + userTokenSupplier.get())
.post(RestUtils.toJsonRequestBody(new PersonRequest(fnr, behandlingsnummer)))
.build();

Expand Down

0 comments on commit 9d5f79a

Please sign in to comment.