diff --git a/proxies/yrkesskade-proxy/config.yml b/proxies/yrkesskade-proxy/config.yml index 6e73d1188c1..546484eeca2 100644 --- a/proxies/yrkesskade-proxy/config.yml +++ b/proxies/yrkesskade-proxy/config.yml @@ -1,4 +1,17 @@ -apiVersion: "nais.io/v1alpha1" +--- +apiVersion: nais.io/v1 +kind: AzureAdApplication +metadata: + name: testnav-yrkesskade-proxy-trygdeetaten + namespace: dolly + labels: + team: dolly +spec: + secretName: azure-trygdeetaten-testnav-yrkesskade-proxy-trygdeetaten + secretKeyPrefix: "AZURE_TRYGDEETATEN" + tenant: trygdeetaten.no +--- +apiVersion: "nais.io/v1alpha1" kind: "Application" metadata: name: testnav-yrkesskade-proxy @@ -59,5 +72,7 @@ spec: memory: 1025Mi limits: memory: 2048Mi + envFrom: + - secret: azure-trygdeetaten-testnav-yrkesskade-proxy-trygdeetaten ingresses: - "https://testnav-yrkesskade-proxy.intern.dev.nav.no" diff --git a/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/YrkesskadeProxyApplicationStarter.java b/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/YrkesskadeProxyApplicationStarter.java index 6e87a942703..29f60ccba99 100644 --- a/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/YrkesskadeProxyApplicationStarter.java +++ b/proxies/yrkesskade-proxy/src/main/java/no/nav/testnav/proxies/yrkesskadeproxy/YrkesskadeProxyApplicationStarter.java @@ -4,7 +4,7 @@ import no.nav.testnav.libs.reactiveproxy.config.SecurityConfig; import no.nav.testnav.libs.reactiveproxy.filter.AddAuthenticationRequestGatewayFilterFactory; import no.nav.testnav.libs.reactivesecurity.config.SecureOAuth2ServerToServerConfiguration; -import no.nav.testnav.libs.reactivesecurity.exchange.azuread.AzureAdTokenService; +import no.nav.testnav.libs.reactivesecurity.exchange.azuread.TrygdeetatenAzureAdTokenService; import no.nav.testnav.libs.securitycore.domain.AccessToken; import no.nav.testnav.proxies.yrkesskadeproxy.config.Consumers; import org.springframework.boot.SpringApplication; @@ -43,7 +43,7 @@ public RouteLocator customRouteLocator(RouteLocatorBuilder builder, @Bean GatewayFilter getAuthenticationFilter( - AzureAdTokenService tokenService, + TrygdeetatenAzureAdTokenService tokenService, Consumers consumers) { return AddAuthenticationRequestGatewayFilterFactory