Skip to content

Commit

Permalink
Merge pull request #495 from navikt/dev-api-scope
Browse files Browse the repository at this point in the history
Endrer azure scopr og toggler på swagger i prod
  • Loading branch information
espenjv authored Aug 19, 2024
2 parents 1dd2509 + e4d4993 commit e8eb7e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nais/naiserator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ spec:
application:
enabled: true
tenant: {{azureTenant}}
allowAllUsers: false
claims:
extra:
- "NAVident"
groups:
{{#each azure.groups as |group|}}
- id: {{group.objectId}}
{{/each}}
singlePageApplication: true
replyURLs:
{{#each azure.replyURLs as |url|}}
- {{url}}
Expand Down
3 changes: 2 additions & 1 deletion nais/prod-gcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"K9_SAK_INNSYN_API_TOKEN_X_AUDIENCE": "prod-gcp:dusseldorf:k9-sak-innsyn-api",
"K9_SELVBETJENING_OPPSLAG_TOKEN_X_AUDIENCE": "prod-gcp:dusseldorf:k9-selvbetjening-oppslag",
"AZURE_LOGIN_URL": "https://login.microsoftonline.com/navno.onmicrosoft.com/oauth2/v2.0",
"K9_DRIFT_GRUPPE_ID": "1509dc91-a955-4e72-b64c-2f049e37c0c6"
"K9_DRIFT_GRUPPE_ID": "1509dc91-a955-4e72-b64c-2f049e37c0c6",
"SWAGGER_ENABLED": "true"
},
"slack-channel": "sif-alerts",
"slack-notify-type": "<!here> | sif-innsyn-api | "
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@ springdoc:
oAuthFlow:
authorizationUrl: ${AZURE_LOGIN_URL:http://localhost:8080}/authorize
tokenUrl: ${AZURE_LOGIN_URL:http://localhost:8080}/token
apiScope: api://${AZURE_APP_CLIENT_ID:abc123}/.default
apiScope: api://${AZURE_APP_CLIENT_ID:abc456}/.default

0 comments on commit e8eb7e0

Please sign in to comment.