Skip to content

Commit

Permalink
Different client id for oppgave-api in dev and prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexable777 committed Dec 15, 2020
1 parent ab2055a commit 9f6c72f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/resources/application-dev-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ NORG2_API_V1_URL: https://api-gw-q1.oera.no/norg2/api/v1

PROXY_APP_CLIENT_ID: c6050231-3b9f-4173-8d1e-39b7e6e3392e

OPPGAVE_APP_CLIENT_ID: bef7cd4d-e65e-41f8-a743-b643e81f2aea

KLAGEPROXY_URL: https://klage-fss-proxy.dev-fss-pub.nais.io

OPPGAVE_URL: https://api-gw-q1.oera.no/oppgave/api/v1/oppgaver
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/application-prod-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ PDL_BASE_URL: https://api-gw.oera.no/pdl-api/graphql
NORG2_API_V1_URL: https://api-gw.oera.no/norg2/api/v1
PROXY_APP_CLIENT_ID: 981be1fb-1379-465f-bddc-7563197aed84

OPPGAVE_APP_CLIENT_ID: 50346823-61a0-49e7-ad89-ea2b1a0e90f8

KLAGEPROXY_URL: https://klage-fss-proxy.prod-fss-pub.nais.io


OPPGAVE_URL: https://api-gw.oera.no/oppgave/api/v1/oppgaver

AXSYS_URL: https://api-gw.oera.no/axsys/api/v1
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ no.nav.security.jwt:
oppgave-onbehalfof:
token-endpoint-url: https://login.microsoftonline.com/${TENANT_ID}/oauth2/v2.0/token
grant-type: urn:ietf:params:oauth:grant-type:jwt-bearer
scope: api://bef7cd4d-e65e-41f8-a743-b643e81f2aea/.default
scope: api://${OPPGAVE_APP_CLIENT_ID}/.default
authentication:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
Expand Down

0 comments on commit 9f6c72f

Please sign in to comment.