Skip to content

Commit

Permalink
Deaktiverte auth. for andre miljøer enn Prod
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmsa committed Jul 2, 2024
1 parent 3cc2754 commit e1f8a7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions apps/hendelselogg-backup/nais/nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ spec:
azure:
application:
enabled: true
tenant: nav.no
claims:
groups:
- id: 88b552ab-2cd9-41e1-bd44-3868605d6f6a
env:
- name: API_OPPSLAG_SCOPE
value: "api://dev-gcp.paw.paw-arbeidssoekerregisteret-api-oppslag/.default"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ fun initKtor(
routing {
swaggerUI(path = "docs/brukerstoette", swaggerFile = "openapi/Brukerstoette.yaml")
configureHealthRoutes(prometheusMeterRegistry)
authenticate("azure") {
if (currentNaisEnv == NaisEnv.ProdGCP) {
authenticate("azure") {
configureBrukerstoetteRoutes(brukerstoetteService)
}
} else {
configureBrukerstoetteRoutes(brukerstoetteService)
}
}
Expand Down

0 comments on commit e1f8a7f

Please sign in to comment.