diff --git a/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/config/impl/OidcProviderConfig.java b/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/config/impl/OidcProviderConfig.java index 77bda44b8..553809e3f 100644 --- a/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/config/impl/OidcProviderConfig.java +++ b/felles/oidc/src/main/java/no/nav/vedtak/sikkerhet/oidc/config/impl/OidcProviderConfig.java @@ -189,7 +189,7 @@ private static OpenIDConfiguration createAzureAppConfiguration(String wellKnownU !ENV.isLocal(), useProxy, ENV.getRequiredProperty(AZURE_CLIENT_ID), ENV.getProperty(AZURE_CLIENT_SECRET), - true); + !ENV.isDev()); } private static OpenIDConfiguration createTokenXConfiguration(String wellKnownUrl) {