diff --git a/apps/profil-api/src/main/java/no/nav/registre/testnorge/profil/service/AzureAdTokenService.java b/apps/profil-api/src/main/java/no/nav/registre/testnorge/profil/service/AzureAdTokenService.java index 0efac63660..aeffef43a0 100644 --- a/apps/profil-api/src/main/java/no/nav/registre/testnorge/profil/service/AzureAdTokenService.java +++ b/apps/profil-api/src/main/java/no/nav/registre/testnorge/profil/service/AzureAdTokenService.java @@ -17,6 +17,7 @@ import java.net.URI; +// TODO: Why do we not use a library here? @Slf4j @Service public class AzureAdTokenService { @@ -26,7 +27,7 @@ public class AzureAdTokenService { public AzureAdTokenService( @Value("${http.proxy:#{null}}") String proxyHost, - @Value("${AAD_ISSUER_URI}") String issuerUrl, + @Value("${AZURE_OPENID_CONFIG_ISSUER}") String issuerUrl, AzureClientCredential clientCredential, GetAuthenticatedToken getAuthenticatedToken ) {