Skip to content

Commit

Permalink
Fikser tilgang til bidrag-person (#60)
Browse files Browse the repository at this point in the history
* Fikser tilgang til bidrag-person
  • Loading branch information
unorsk authored Oct 13, 2023
1 parent 57f450d commit b1a76bb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .nais/feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: bidrag-behandling-feature
ingresses:
- https://bidrag-behandling-feature.intern.dev.nav.no
env:
BIDRAG_PERSON_URL: https://bidrag-person
BIDRAG_PERSON_URL: https://bidrag-person-feature.dev-fss-pub.nais.io/bidrag-person
BIDRAG_PERSON_SCOPE: dev-fss.bidrag.bidrag-person-feature
BIDRAG_BEREGN_FORSKUDD_URL: http://bidrag-beregn-forskudd-rest-feature
BIDRAG_BEREGN_FORSKUDD_SCOPE: dev-gcp.bidrag.bidrag-beregn-forskudd-rest-feature
Expand Down Expand Up @@ -34,8 +34,9 @@ database:
autoResize: false
tier: db-f1-micro
outbound-access-apps:
- bidrag-person
- bidrag-beregn-forskudd-rest-feature
- bidrag-grunnlag-feature
- bidrag-dokument-forsendelse-feature
- bidrag-tilgangskontroll-feature
- bidrag-tilgangskontroll-feature
outbound-access-hosts:
- bidrag-person-feature.dev-fss-pub.nais.io
7 changes: 4 additions & 3 deletions .nais/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: bidrag-behandling
ingresses:
- https://bidrag-behandling.intern.dev.nav.no
env:
BIDRAG_PERSON_URL: https://bidrag-person
BIDRAG_PERSON_URL: https://bidrag-person.dev-fss-pub.nais.io/bidrag-person
BIDRAG_PERSON_SCOPE: dev-fss.bidrag.bidrag-person
BIDRAG_BEREGN_FORSKUDD_URL: http://bidrag-beregn-forskudd-rest
BIDRAG_BEREGN_FORSKUDD_SCOPE: dev-gcp.bidrag.bidrag-beregn-forskudd-rest
Expand Down Expand Up @@ -34,8 +34,9 @@ database:
autoResize: false
tier: db-f1-micro
outbound-access-apps:
- bidrag-person
- bidrag-beregn-forskudd-rest
- bidrag-grunnlag
- bidrag-dokument-forsendelse
- bidrag-tilgangskontroll
- bidrag-tilgangskontroll
outbound-access-hosts:
- bidrag-person.dev-fss-pub.nais.io
7 changes: 4 additions & 3 deletions .nais/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: bidrag-behandling
ingresses:
- https://bidrag-behandling.intern.nav.no
env:
BIDRAG_PERSON_URL: https://bidrag-person
BIDRAG_PERSON_URL: https://bidrag-person.prod-fss-pub.nais.io/bidrag-person
BIDRAG_PERSON_SCOPE: prod-fss.bidrag.bidrag-person
BIDRAG_BEREGN_FORSKUDD_URL: http://bidrag-beregn-forskudd-rest
BIDRAG_BEREGN_FORSKUDD_SCOPE: prod-gcp.bidrag.bidrag-beregn-forskudd-rest
Expand Down Expand Up @@ -33,8 +33,9 @@ database:
autoResize: false
tier: db-custom-1-3840
outbound-access-apps:
- bidrag-person
- bidrag-beregn-forskudd-rest
- bidrag-grunnlag
- bidrag-dokument-forsendelse
- bidrag-tilgangskontroll
- bidrag-tilgangskontroll
outbound-access-hosts:
- bidrag-person.prod-fss-pub.nais.io
9 changes: 9 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ spring.config.activate.on-profile: nais,lokal-nais
no.nav.security.jwt:
client:
registration:
bidrag-person:
resource-url: ${BIDRAG_PERSON_URL}
token-endpoint-url: https://login.microsoftonline.com/${AZURE_APP_TENANT_ID}/oauth2/v2.0/token
grant-type: urn:ietf:params:oauth:grant-type:jwt-bearer
scope: api://${BIDRAG_PERSON_SCOPE}/.default
authentication:
client-id: ${AZURE_APP_CLIENT_ID}
client-secret: ${AZURE_APP_CLIENT_SECRET}
client-auth-method: client_secret_post
bidrag-beregn-forskudd-rest:
resource-url: ${BIDRAG_BEREGN_FORSKUDD_URL}
token-endpoint-url: https://login.microsoftonline.com/${AZURE_APP_TENANT_ID}/oauth2/v2.0/token
Expand Down

0 comments on commit b1a76bb

Please sign in to comment.