|
11 | 11 | @Slf4j |
12 | 12 | public class NaisEnvironmentApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { |
13 | 13 |
|
| 14 | + // Konfigurasjon for lokal kjoering er hentet herfra: https://github.com/navikt/localauth |
14 | 15 | private static final String APP_CLIENT_ID = "669db109-2dbb-4c4c-93cd-cbc6aa2ef1a4"; |
15 | 16 | private static final String LOCAL_AUTH = "https://dolly-auth-local.intern.dev.nav.no"; |
16 | 17 | private static final String PROVIDER_URL = "https://login.microsoftonline.com"; |
@@ -50,16 +51,15 @@ private static void configureForLocalProfile(ConfigurableEnvironment environment |
50 | 51 | // Emulating NAIS provided environment variables. |
51 | 52 | properties.putIfAbsent("AZURE_APP_CLIENT_ID", APP_CLIENT_ID); |
52 | 53 | 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"); |
54 | 55 | properties.putIfAbsent("AZURE_OPENID_CONFIG_ISSUER", "%s/%s/v2.0".formatted(PROVIDER_URL, TENENT_ID)); |
55 | 56 | 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. |
57 | 57 | properties.putIfAbsent("JWT_SECRET", DUMMY); |
58 | 58 | properties.putIfAbsent("MASKINPORTEN_CLIENT_ID", DUMMY); // Used by tenor-search-service and altinn3-tilgang-service only. |
59 | 59 | properties.putIfAbsent("MASKINPORTEN_CLIENT_JWK", DUMMY); // Used by tenor-search-service and altinn3-tilgang-service only. |
60 | 60 | 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"); |
63 | 63 |
|
64 | 64 | } |
65 | 65 |
|
|
0 commit comments