Skip to content

Commit c62df69

Browse files
committed
Update local authentication configuration in NaisEnvironmentApplicationContextInitializer
2 parents b777fd6 + 63dd20c commit c62df69

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libs/testing/src/main/java/no/nav/dolly/libs/nais/NaisEnvironmentApplicationContextInitializer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@Slf4j
1212
public class NaisEnvironmentApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
1313

14+
// Konfigurasjon for lokal kjoering er hentet herfra: https://github.com/navikt/localauth
1415
private static final String APP_CLIENT_ID = "669db109-2dbb-4c4c-93cd-cbc6aa2ef1a4";
1516
private static final String LOCAL_AUTH = "https://dolly-auth-local.intern.dev.nav.no";
1617
private static final String PROVIDER_URL = "https://login.microsoftonline.com";
@@ -50,16 +51,15 @@ private static void configureForLocalProfile(ConfigurableEnvironment environment
5051
// Emulating NAIS provided environment variables.
5152
properties.putIfAbsent("AZURE_APP_CLIENT_ID", APP_CLIENT_ID);
5253
properties.putIfAbsent("AZURE_APP_CLIENT_SECRET", DUMMY);
53-
properties.putIfAbsent("AZURE_NAV_OPENID_CONFIG_TOKEN_ENDPOINT", LOCAL_AUTH + "/entraid/oauth2/token"); // Corresponding AZURE_NAV_APP_CLIENT_[ID|SECRET] can be loaded from pod, if needed.
54+
properties.putIfAbsent("AZURE_NAV_OPENID_CONFIG_TOKEN_ENDPOINT", LOCAL_AUTH + "/entraid/oauth2/token");
5455
properties.putIfAbsent("AZURE_OPENID_CONFIG_ISSUER", "%s/%s/v2.0".formatted(PROVIDER_URL, TENENT_ID));
5556
properties.putIfAbsent("AZURE_OPENID_CONFIG_TOKEN_ENDPOINT", LOCAL_AUTH + "/entraid/oauth2/token");
56-
properties.putIfAbsent("AZURE_TRYGDEETATEN_OPENID_CONFIG_TOKEN_ENDPOINT", "${sm@azure-trygdeetaten-openid-config-token-endpoint}"); // Corresponding AZURE_TRYGDEETATEN_APP_CLIENT_[ID|SECRET] can be loaded from pod, if needed.
5757
properties.putIfAbsent("JWT_SECRET", DUMMY);
5858
properties.putIfAbsent("MASKINPORTEN_CLIENT_ID", DUMMY); // Used by tenor-search-service and altinn3-tilgang-service only.
5959
properties.putIfAbsent("MASKINPORTEN_CLIENT_JWK", DUMMY); // Used by tenor-search-service and altinn3-tilgang-service only.
6060
properties.putIfAbsent("MASKINPORTEN_SCOPES", DUMMY); // Used by tenor-search-service and altinn3-tilgang-service only.
61-
properties.putIfAbsent("MASKINPORTEN_WELL_KNOWN_URL", "${sm@maskinporten-well-known-url}"); // Used by tenor-search-service and altinn3-tilgang-service only.
62-
properties.putIfAbsent("TOKEN_X_ISSUER", "${sm@token-x-issuer}");
61+
properties.putIfAbsent("MASKINPORTEN_WELL_KNOWN_URL", "https://test.maskinporten.no/.well-known/oauth-authorization-server"); // Used by tenor-search-service and altinn3-tilgang-service only.
62+
properties.putIfAbsent("TOKEN_X_ISSUER", "https://tokenx.dev-gcp.nav.cloud.nais.io");
6363

6464
}
6565

0 commit comments

Comments
 (0)